update
This commit is contained in:
parent
5b92f109b9
commit
34b435ffca
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue