Reporting: Traffic - fix netaddr incompatibility (AttributeError: 'IPAddress' object has no attribute 'is_private')
This commit is contained in:
parent
ce71a40b03
commit
0d7b9fd34f
|
@ -151,7 +151,7 @@ if __name__ == '__main__':
|
|||
ip = IPAddress(parts[0])
|
||||
if ip in all_local_addresses:
|
||||
item['tags'].append('local')
|
||||
if ip.is_private():
|
||||
if not ip.is_global():
|
||||
item['tags'].append('private')
|
||||
except subprocess.TimeoutExpired:
|
||||
pass
|
||||
|
|
Loading…
Reference in New Issue