mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge pull request #1109 from leo-lb/lle-bout/fix-upnp
firewall: force source port for UPnP.
This commit is contained in:
commit
1bad8267c6
1 changed files with 1 additions and 1 deletions
|
@ -336,7 +336,7 @@ def firewall_upnp(action='status', no_refresh=False):
|
||||||
|
|
||||||
# Refresh port mapping using UPnP
|
# Refresh port mapping using UPnP
|
||||||
if not no_refresh:
|
if not no_refresh:
|
||||||
upnpc = miniupnpc.UPnP()
|
upnpc = miniupnpc.UPnP(localport=1)
|
||||||
upnpc.discoverdelay = 3000
|
upnpc.discoverdelay = 3000
|
||||||
|
|
||||||
# Discover UPnP device(s)
|
# Discover UPnP device(s)
|
||||||
|
|
Loading…
Add table
Reference in a new issue