[enh] Improve upnp support (#542)

This commit is contained in:
ljf (zamentur) 2018-12-02 02:43:39 +01:00 committed by Alexandre Aubin
parent 41c1a9ce13
commit 640bc494cb

View file

@ -343,7 +343,8 @@ def firewall_upnp(action='status', no_refresh=False):
# Refresh port mapping using UPnP
if not no_refresh:
upnpc = miniupnpc.UPnP()
upnpc.discoverdelay = 3000
upnpc.discoverdelay = 62000
upnpc.localport = 1900
# Discover UPnP device(s)
logger.debug('discovering UPnP devices...')