[fix] port loop fix

This commit is contained in:
kload 2014-05-02 13:42:57 +02:00
parent dc97ee6d33
commit e0f2061852

View file

@ -148,6 +148,7 @@ def firewall_reload():
if upnpc.discover() == 1:
upnpc.selectigd()
for protocol in ['TCP', 'UDP']:
for port in firewall['uPnP'][protocol]:
if upnpc.getspecificportmapping(port, protocol):
try: upnpc.deleteportmapping(port, protocol)
except: pass