mirror of https://github.com/huashengdun/webssh
Blind redirect if https port enabled
parent
24eb1918bf
commit
857d9090a4
|
@ -248,9 +248,7 @@ class MixinHandler(object):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
if context._orig_protocol == 'http':
|
if context._orig_protocol == 'http':
|
||||||
if redirecting and not is_ip_hostname(hostname):
|
if redirecting:
|
||||||
ip_address = to_ip_address(ip)
|
|
||||||
if not ip_address.is_private:
|
|
||||||
# redirecting
|
# redirecting
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue