mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
bugfix when port already add!
This commit is contained in:
parent
5626d1667b
commit
726c16ab70
1 changed files with 3 additions and 3 deletions
|
@ -172,11 +172,11 @@ def update_yml(port=None, protocol=None, mode=None, ipv6=None, upnp=False):
|
||||||
if port not in firewall[ip][protocol]:
|
if port not in firewall[ip][protocol]:
|
||||||
firewall[ip][protocol].append(port)
|
firewall[ip][protocol].append(port)
|
||||||
|
|
||||||
else:
|
else if upnp:
|
||||||
raise YunoHostError(22, _("Port already openned :") + str(port))
|
|
||||||
if upnp:
|
|
||||||
if port not in firewall[ip]['upnp'][protocol]:
|
if port not in firewall[ip]['upnp'][protocol]:
|
||||||
firewall[ip]['upnp'][protocol].append(port)
|
firewall[ip]['upnp'][protocol].append(port)
|
||||||
|
else:
|
||||||
|
raise YunoHostError(22, _("Port already openned :") + str(port))
|
||||||
|
|
||||||
else:
|
else:
|
||||||
raise YunoHostError(22, _("Port already openned :") + str(port))
|
raise YunoHostError(22, _("Port already openned :") + str(port))
|
||||||
|
|
Loading…
Reference in a new issue