Merge pull request #23823 from gtmanfred/2014.7

add link local for ipv6
This commit is contained in:
Joseph Hall 2015-05-17 06:48:25 -06:00
commit 188f03f567

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: