|
|
@ -465,11 +465,13 @@ def checkDomainPanel(): |
|
|
|
|
|
|
|
|
|
|
|
ip = getHostAddr() |
|
|
|
ip = getHostAddr() |
|
|
|
if domain == '': |
|
|
|
if domain == '': |
|
|
|
|
|
|
|
print(current_host.strip().lower(), ip.strip().lower()) |
|
|
|
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) |
|
|
|
return False |
|
|
|
return False |
|
|
|
else: |
|
|
|
else: |
|
|
|
|
|
|
|
print(current_host.strip().lower(), domain.strip().lower()) |
|
|
|
if current_host.strip().lower() != domain.strip().lower(): |
|
|
|
if current_host.strip().lower() != domain.strip().lower(): |
|
|
|
to = scheme + "://" + domain + ":" + str(port) |
|
|
|
to = scheme + "://" + domain + ":" + str(port) |
|
|
|
return redirect(to, code=302) |
|
|
|
return redirect(to, code=302) |
|
|
|