This commit is contained in:
Mr Chen 2024-12-01 20:24:57 +08:00
parent 5b92f109b9
commit 34b435ffca
2 changed files with 2 additions and 1 deletions

View File

@ -130,6 +130,7 @@ def requestAfter(response):
@app.errorhandler(404)
def page_unauthorized(error):
from flask import redirect
return redirect('/', code=302)
# return render_template_string('404 not found', error_info=error), 404

View File

@ -483,7 +483,7 @@ def checkDomainPanel():
return redirect(to, code=302)
return False
else:
print(current_host.strip().lower(), domain.strip().lower())
# 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)