From 852fc6e5a7e0f3fae15665d90cbc0608beab8b57 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Thu, 28 Nov 2024 19:04:25 +0800 Subject: [PATCH] Update mw.py --- web/core/mw.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/core/mw.py b/web/core/mw.py index cf60c8222..a410e909a 100644 --- a/web/core/mw.py +++ b/web/core/mw.py @@ -465,11 +465,13 @@ def checkDomainPanel(): ip = getHostAddr() if domain == '': + print(current_host.strip().lower(), ip.strip().lower()) if current_host.strip().lower() != ip.strip().lower(): to = scheme + "://" + ip + ":" + str(port) return redirect(to, code=302) return False else: + print(current_host.strip().lower(), domain.strip().lower()) if current_host.strip().lower() != domain.strip().lower(): to = scheme + "://" + domain + ":" + str(port) return redirect(to, code=302)