Skip to content

Commit

Permalink
fix(inventory): improve threat shield IP (#80)
Browse files Browse the repository at this point in the history
Enteprise lists by Yoroi where not correctly counted
as enterprise
  • Loading branch information
gsanchietti authored Nov 29, 2024
1 parent 078722d commit be183c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nethsec/inventory/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def fact_threat_shield(uci: EUci):
ret['enabled'] = uci.get('banip', 'global', 'ban_enabled', default='0') == '1'
try:
for feed in uci.get_all("banip", "global", "ban_feed"):
if feed.startswith("nethesis") or feed.startswith("yoroy"):
if feed.startswith("nethesis") or feed.startswith("yoroi"):
ret['enterprise'] += 1
else:
ret['community'] += 1
Expand Down

0 comments on commit be183c6

Please sign in to comment.