Merge pull request #1109 from leo-lb/lle-bout/fix-upnp

firewall: force source port for UPnP.
This commit is contained in:
Alexandre Aubin 2021-01-08 02:40:34 +01:00 committed by GitHub
commit 1bad8267c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -336,7 +336,7 @@ def firewall_upnp(action='status', no_refresh=False):
# Refresh port mapping using UPnP
if not no_refresh:
upnpc = miniupnpc.UPnP()
upnpc = miniupnpc.UPnP(localport=1)
upnpc.discoverdelay = 3000
# Discover UPnP device(s)