Update mw.py

pull/632/head
Mr Chen 5 months ago
parent 17b40e5d1d
commit 852fc6e5a7
  1. 2
      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)

Loading…
Cancel
Save