From dc29da83162c859b1f0aa8d8e0582ba043854ca8 Mon Sep 17 00:00:00 2001 From: titoko Date: Wed, 12 Dec 2012 14:16:11 +0100 Subject: [PATCH] Update yunohost_firewall.py Remove name argument --- yunohost_firewall.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yunohost_firewall.py b/yunohost_firewall.py index 138a901c..61e2ee06 100644 --- a/yunohost_firewall.py +++ b/yunohost_firewall.py @@ -9,7 +9,7 @@ except ImportError: sys.stderr.write('apt-get install python-yaml\n') sys.exit(1) -def firewall_allow(protocol=None,port=None,name=None): +def firewall_allow(protocol=None,port=None): if protocol == "Both": chaineTCP="iptables -A INPUT -p tcp -i eth0 --dport "+ port +" -j ACCEPT" chaineUDP="iptables -A INPUT -p udp -i eth0 --dport "+ port +" -j ACCEPT" @@ -23,7 +23,7 @@ def firewall_allow(protocol=None,port=None,name=None): append_port(port,protocol) os.system(chaine) -def firewall_disallow(protocol=None,port=None,name=None): +def firewall_disallow(protocol=None,port=None): if protocol == "Both": chaineTCP="iptables -A INPUT -p tcp -i eth0 --dport "+ port +" -j REJECT" chaineUDP="iptables -A INPUT -p udp -i eth0 --dport "+ port +" -j REJECT"