From 0a580381cf516b4ec60024f97eda5a1e1ba5534a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-Elliott=20B=C3=A9cue?= Date: Sun, 17 May 2015 17:58:09 +0200 Subject: [PATCH] On s'assure que l'ip est bien une netaddr.IPAddress --- gestion/gen_confs/firewall4/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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