Merge pull request #934 from tfwiii/main

publicip - Bug Fix
This commit is contained in:
tobi-wan-kenobi 2022-10-12 09:03:14 +02:00 committed by GitHub
commit 5412591a0e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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():
try:
__current_ips.add(netifaces.ifaddresses(interface)[2][0]['addr']) __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()