Use is_private instead of is_global

This commit is contained in:
Sheng
2018-10-15 20:34:17 +08:00
parent 77b6fbfd85
commit 021a3a627f
+1 -1
View File
@@ -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):