mirror of https://github.com/huashengdun/webssh
Use is_private instead of is_global
parent
77b6fbfd85
commit
021a3a627f
|
@ -58,7 +58,7 @@ class MixinHandler(object):
|
||||||
|
|
||||||
if context._orig_protocol == 'http':
|
if context._orig_protocol == 'http':
|
||||||
ipaddr = to_ip_address(ip)
|
ipaddr = to_ip_address(ip)
|
||||||
if ipaddr.is_global:
|
if not ipaddr.is_private:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def set_default_headers(self):
|
def set_default_headers(self):
|
||||||
|
|
Loading…
Reference in New Issue