Skip to content

Commit

Permalink
Reporting: Traffic - fix netaddr incompatibility (AttributeError: 'IP…
Browse files Browse the repository at this point in the history
…Address' object has no attribute 'is_private')
  • Loading branch information
AdSchellevis committed Apr 5, 2024
1 parent ce71a40 commit 0d7b9fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/opnsense/scripts/interfaces/traffic_top.py
Expand Up @@ -151,7 +151,7 @@ def collect(self, addresses):
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
Expand Down

0 comments on commit 0d7b9fd

Please sign in to comment.