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 return
except SOAPError: except SOAPError:
if not confirm_port(): pass
return
service.AddPortMapping( service.AddPortMapping(
NewRemoteHost="", NewRemoteHost="",
NewExternalPort=BS_PORT, NewExternalPort=BS_PORT,
@ -234,7 +233,7 @@ def add_port_mapping():
) )
bui.getsound("shieldUp").play() bui.getsound("shieldUp").play()
except (SOAPError, HTTPError): 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 @threaded