diff --git a/gestion/gen_confs/firewall4/utils.py b/gestion/gen_confs/firewall4/utils.py index afd68eb0..fd8e756b 100644 --- a/gestion/gen_confs/firewall4/utils.py +++ b/gestion/gen_confs/firewall4/utils.py @@ -97,7 +97,7 @@ class firewall_tools(object) : bl_ips.add(str(ip)) else: for net in nets: - if ip in netaddr.IPNetwork(net): + if ip.value in netaddr.IPNetwork(net): bl_ips.add(str(ip)) return bl_ips