Commit 021a3a62 by Sheng

Use is_private instead of is_global

parent 77b6fbfd
...@@ -58,7 +58,7 @@ class MixinHandler(object): ...@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment