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