From 10ec01e7b0d2e9a90f39e7182eae3ff947bd82ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Diot?= Date: Wed, 22 Feb 2023 09:34:28 +0100 Subject: [PATCH] Fix wrong env var name in realip plugin --- src/common/core/realip/jobs/realip-download.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/core/realip/jobs/realip-download.py b/src/common/core/realip/jobs/realip-download.py index 8b8b36d31..856262c9d 100755 --- a/src/common/core/realip/jobs/realip-download.py +++ b/src/common/core/realip/jobs/realip-download.py @@ -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