Handle IPv6 addresses #43

Merged
Solvik merged 1 commit from feature/ipv6 into master 2019-08-26 14:02:08 +02:00

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']):