[fix] Increase discover delay for certain routers

This commit is contained in:
Kload 2014-05-18 12:10:41 +02:00
parent b11d2f450b
commit dda142e8ad

View file

@ -145,7 +145,7 @@ def firewall_reload():
if upnp: if upnp:
try: try:
upnpc = miniupnpc.UPnP() upnpc = miniupnpc.UPnP()
upnpc.discoverdelay = 200 upnpc.discoverdelay = 3000
if upnpc.discover() == 1: if upnpc.discover() == 1:
upnpc.selectigd() upnpc.selectigd()
for protocol in ['TCP', 'UDP']: for protocol in ['TCP', 'UDP']:
@ -228,7 +228,7 @@ def firewall_upnp(action=None):
try: try:
upnpc = miniupnpc.UPnP() upnpc = miniupnpc.UPnP()
upnpc.discoverdelay = 200 upnpc.discoverdelay = 3000
if upnpc.discover() == 1: if upnpc.discover() == 1:
upnpc.selectigd() upnpc.selectigd()
for protocol in ['TCP', 'UDP']: for protocol in ['TCP', 'UDP']: