mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-17 10:04:41 +00:00
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…
x
Reference in New Issue
Block a user