mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Update yunohost_firewall.py
This commit is contained in:
parent
78bfd52cb8
commit
ef70c05290
1 changed files with 2 additions and 2 deletions
|
@ -161,14 +161,14 @@ def update_yml(port=None,protocol=None,mode=None,ipv6=None):
|
|||
firewall[ip][protocol].append(port)
|
||||
|
||||
else:
|
||||
raise YunoHostError(22,_("Port already openned ")+port)
|
||||
raise YunoHostError(22,_("Port already openned :")+port)
|
||||
|
||||
else:
|
||||
if port in firewall[ip][protocol]:
|
||||
firewall[ip][protocol].remove(port)
|
||||
|
||||
else:
|
||||
raise YunoHostError(22,_("Port already closed ")+port)
|
||||
raise YunoHostError(22,_("Port already closed :")+port)
|
||||
|
||||
firewall[ip][protocol].sort(key=int)
|
||||
|
||||
|
|
Loading…
Reference in a new issue