|
|
@ -466,6 +466,8 @@ def checkDomainPanel(): |
|
|
|
ip = getHostAddr() |
|
|
|
ip = getHostAddr() |
|
|
|
if domain == '': |
|
|
|
if domain == '': |
|
|
|
print(current_host.strip().lower(), ip.strip().lower()) |
|
|
|
print(current_host.strip().lower(), ip.strip().lower()) |
|
|
|
|
|
|
|
if ip in ['127.0.0.1', 'localhost', '::1']: |
|
|
|
|
|
|
|
return False |
|
|
|
if current_host.strip().lower() != ip.strip().lower(): |
|
|
|
if current_host.strip().lower() != ip.strip().lower(): |
|
|
|
to = scheme + "://" + ip + ":" + str(port) |
|
|
|
to = scheme + "://" + ip + ":" + str(port) |
|
|
|
return redirect(to, code=302) |
|
|
|
return redirect(to, code=302) |
|
|
|