From d7b437ea28d68d9796964f97aeefe341d652f18f Mon Sep 17 00:00:00 2001 From: Giacomo Sanchietti Date: Fri, 29 Nov 2024 12:33:06 +0100 Subject: [PATCH] fix(inventory): improve threat shield IP Enteprise lists by Yoroi where not correctly counted as enterprise --- src/nethsec/inventory/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nethsec/inventory/__init__.py b/src/nethsec/inventory/__init__.py index 5740f448..ef85ac9f 100644 --- a/src/nethsec/inventory/__init__.py +++ b/src/nethsec/inventory/__init__.py @@ -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