commit 021a3a627ffdce17e8e730cfae7ae00f8c8bb520
parent 77b6fbfd8573b298de0a16dbbc175bffe151492f
Author: Sheng <webmaster0115@gmail.com>
Date: Mon, 15 Oct 2018 20:34:17 +0800
Use is_private instead of is_global
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/webssh/handler.py b/webssh/handler.py
@@ -58,7 +58,7 @@ class MixinHandler(object):
if context._orig_protocol == 'http':
ipaddr = to_ip_address(ip)
- if ipaddr.is_global:
+ if not ipaddr.is_private:
return True
def set_default_headers(self):