mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #23823 from gtmanfred/2014.7
add link local for ipv6
This commit is contained in:
commit
188f03f567
1 changed files with 3 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue