From dccd8afd5167eb2852567ad02062e802ba4834fb Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Tue, 10 Aug 2021 10:20:15 +0200 Subject: [PATCH] Thanks @Diman0! ENEEDSLEEP --- core/admin/mailu/internal/nginx.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/admin/mailu/internal/nginx.py b/core/admin/mailu/internal/nginx.py index 0c03b866..5e60cd0c 100644 --- a/core/admin/mailu/internal/nginx.py +++ b/core/admin/mailu/internal/nginx.py @@ -81,8 +81,8 @@ def handle_authentication(headers): raw_password = urllib.parse.unquote(headers["Auth-Pass"]) password = raw_password.encode("iso8859-1").decode("utf8") ip = urllib.parse.unquote(headers["Client-Ip"]) - port = int(urllib.parse.unquote(headers["Auth-Port"])) - if port == 25: + service_port = int(urllib.parse.unquote(headers["Auth-Port"])) + if service_port == 25: return { "Auth-Status": "AUTH not supported", "Auth-Error-Code": "502 5.5.1",