mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
parent
5263db9dd5
commit
2da98b58c8
@ -1728,6 +1728,9 @@ def is_public_ip(ip):
|
||||
'''
|
||||
Determines whether an IP address falls within one of the private IP ranges
|
||||
'''
|
||||
if ':' in ip:
|
||||
# ipv6
|
||||
return True
|
||||
addr = ip_to_int(ip)
|
||||
if addr > 167772160 and addr < 184549375:
|
||||
# 10.0.0.0/24
|
||||
|
Loading…
Reference in New Issue
Block a user