add ipv6 addresses (#43)

This commit is contained in:
Solvik 2019-08-26 14:02:07 +02:00 committed by GitHub
parent 5b5eb8f16b
commit 8de682f46d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,6 +60,7 @@ class Network():
continue
ip_addr = netifaces.ifaddresses(interface).get(netifaces.AF_INET)
ip_addr += netifaces.ifaddresses(interface).get(netifaces.AF_INET6)
if NETWORK_IGNORE_IPS and ip_addr:
for i, ip in enumerate(ip_addr):
if re.match(NETWORK_IGNORE_IPS, ip['addr']):