From 2fd58da7254a79ed6c22e26061763ee41022d7e1 Mon Sep 17 00:00:00 2001 From: glondu Date: Sat, 29 Apr 2006 19:00:01 +0200 Subject: [PATCH] Typo. Le deplacement du print OK, c'est pas moi. darcs-hash:20060429170001-68412-bc8f09d10b808b8f5df853b3f799b34691d7eae5.gz --- gestion/gen_confs/firewall.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gestion/gen_confs/firewall.py b/gestion/gen_confs/firewall.py index 490125b5..519e2ce7 100755 --- a/gestion/gen_confs/firewall.py +++ b/gestion/gen_confs/firewall.py @@ -504,7 +504,6 @@ class firewall_komaz(firewall_crans) : # On ne va pas plus loin si il ne s'agit pas de bittorrent iptables("-t mangle -A POSTROUTING -m mark ! --mark %s -j ACCEPT" % conf_fw.mark['bittorrent']) - print OK # On marque les paquets bittorrent uniquement iptables("-t mangle -A PREROUTING -p tcp -j CONNMARK --restore-mark") @@ -535,6 +534,7 @@ class firewall_komaz(firewall_crans) : prev_chain = "SUBNET-%s" % prev_subnet next_chain = "SUBNET-%s" % subnet redirect_chain('mangle', prev_chain, next_chain, subnet) + print OK adherents = db.search('paiement=ok')['adherent'] # On calcule le débit garanti pour un adhérent @@ -645,7 +645,7 @@ class firewall_komaz(firewall_crans) : if not recherche : # Il faut supprimer cette entrée option = '-D' - subnet = IpSubnet(ip.split, conf_fw.mask[len(conf_fw.mask)-1]) + subnet = IpSubnet(ip, conf_fw.mask[len(conf_fw.mask)-1]) regles = iptables("-t mangle -L SUBNET-%s -n | grep %s" % (subnet, ip)).split('\n') # On sélectionne la première qui doit contenir ce que l'on veut regle = regles[0].split()