From 1baa92a4b68a60b95c90dc5b7236ef5d6d68db35 Mon Sep 17 00:00:00 2001 From: Nicolas Dandrimont Date: Sat, 7 May 2011 16:54:53 +0200 Subject: [PATCH] =?UTF-8?q?[iptools]=20Renvoie=20le=20r=C3=A9seau=20plut?= =?UTF-8?q?=C3=B4t=20qu'un=20bool=C3=A9en?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ignore-this: b1938b7fee55abf4f25a6742fa1fba47 darcs-hash:20110507145453-ffbb2-37309cb94589193f98b60fc5e86740f3fd2d987c.gz --- gestion/iptools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gestion/iptools.py b/gestion/iptools.py index 498a74bf..db516767 100644 --- a/gestion/iptools.py +++ b/gestion/iptools.py @@ -116,8 +116,8 @@ def AddrInNets(ip,nets) : de la liste nets (voir AddrInNet) """ for net in nets : if AddrInNet(ip,net) : - return True - return False + return net + return '' def is_crans(ip): """ Vérifie que l'ip est dans le réseau CRANS