add ipv6 addresses (#43)
This commit is contained in:
parent
5b5eb8f16b
commit
8de682f46d
1 changed files with 1 additions and 0 deletions
|
@ -60,6 +60,7 @@ class Network():
|
||||||
continue
|
continue
|
||||||
|
|
||||||
ip_addr = netifaces.ifaddresses(interface).get(netifaces.AF_INET)
|
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:
|
if NETWORK_IGNORE_IPS and ip_addr:
|
||||||
for i, ip in enumerate(ip_addr):
|
for i, ip in enumerate(ip_addr):
|
||||||
if re.match(NETWORK_IGNORE_IPS, ip['addr']):
|
if re.match(NETWORK_IGNORE_IPS, ip['addr']):
|
||||||
|
|
Loading…
Reference in a new issue