add link local for ipv6

This commit is contained in:
Daniel Wallace 2015-05-17 01:17:58 -05:00
parent f3ca682f92
commit 5ef006d59d

View file

@ -1787,6 +1787,9 @@ def is_public_ip(ip):
'''
if ':' in ip:
# ipv6
if ip.startswith('fe80:'):
# ipv6 link local
return False
return True
addr = ip_to_int(ip)
if addr > 167772160 and addr < 184549375: