commit
5412591a0e
1 changed files with 4 additions and 2 deletions
|
@ -72,8 +72,10 @@ class Module(core.module.Module):
|
||||||
# Look for any changes to IP addresses
|
# Look for any changes to IP addresses
|
||||||
try:
|
try:
|
||||||
for interface in netifaces.interfaces():
|
for interface in netifaces.interfaces():
|
||||||
__current_ips.add(netifaces.ifaddresses(interface)[2][0]['addr'])
|
try:
|
||||||
|
__current_ips.add(netifaces.ifaddresses(interface)[2][0]['addr'])
|
||||||
|
except:
|
||||||
|
pass
|
||||||
except:
|
except:
|
||||||
# If not ip address information found clear __current_ips
|
# If not ip address information found clear __current_ips
|
||||||
__current_ips.clear()
|
__current_ips.clear()
|
||||||
|
|
Loading…
Reference in a new issue