Update natpmp_upnp.py

This commit is contained in:
brostos 2024-03-03 19:41:36 +03:00 committed by GitHub
parent 6f5e4a7edc
commit a8096be232
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -216,8 +216,7 @@ def add_port_mapping():
)
return
except SOAPError:
if not confirm_port():
return
pass
service.AddPortMapping(
NewRemoteHost="",
NewExternalPort=BS_PORT,
@ -234,7 +233,7 @@ def add_port_mapping():
)
bui.getsound("shieldUp").play()
except (SOAPError, HTTPError):
babase.screenmessage('You will need to manualy add the port at the router :(')
babase.screenmessage('You will need to manualy add the port on the router :(')
@threaded