Fix wrong env var name in realip plugin

This commit is contained in:
Théophile Diot 2023-02-22 09:34:28 +01:00
parent 947ecf81f1
commit 10ec01e7b0
No known key found for this signature in database
GPG Key ID: E752C80DB72BB014
1 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ def check_line(line):
with suppress(ValueError):
ip_address(line)
return True, line
return False, ""
return False, b""
logger = setup_logger("REALIP", getenv("LOG_LEVEL", "INFO"))
@ -71,7 +71,7 @@ try:
_exit(0)
# Get URLs
urls = [url for url in getenv("REALIP_FROM_URLS", "").split(" ") if url]
urls = [url for url in getenv("REAL_IP_FROM_URLS", "").split(" ") if url]
# Download and write data to temp file
i = 0