From 021a3a627ffdce17e8e730cfae7ae00f8c8bb520 Mon Sep 17 00:00:00 2001 From: Sheng Date: Mon, 15 Oct 2018 20:34:17 +0800 Subject: [PATCH] Use is_private instead of is_global --- webssh/handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webssh/handler.py b/webssh/handler.py index 33b7ec6..88bd757 100644 --- 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):