mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2025-10-08 14:54:36 +00:00
[ci] auto-format
This commit is contained in:
parent
2b70c7e906
commit
a23f69997c
1 changed files with 7 additions and 8 deletions
|
|
@ -180,7 +180,6 @@ def add_port_mapping():
|
||||||
# bui.getsound('shieldDown').play() -> RuntimeError : Sound creation failed
|
# bui.getsound('shieldDown').play() -> RuntimeError : Sound creation failed
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
local_ip = (
|
local_ip = (
|
||||||
(
|
(
|
||||||
[
|
[
|
||||||
|
|
@ -238,7 +237,6 @@ def add_port_mapping():
|
||||||
babase.screenmessage('You will need to manualy add the port at the router :(')
|
babase.screenmessage('You will need to manualy add the port at the router :(')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@threaded
|
@threaded
|
||||||
def delete_port_mapping():
|
def delete_port_mapping():
|
||||||
import socket
|
import socket
|
||||||
|
|
@ -268,7 +266,8 @@ def delete_port_mapping():
|
||||||
for service in upnp_dev.services:
|
for service in upnp_dev.services:
|
||||||
if service in WAN_SERVICE_NAMES:
|
if service in WAN_SERVICE_NAMES:
|
||||||
service = upnp_dev[service]
|
service = upnp_dev[service]
|
||||||
service.DeletePortMapping(NewRemoteHost="", NewExternalPort=BS_PORT, NewProtocol="UDP")
|
service.DeletePortMapping(
|
||||||
|
NewRemoteHost="", NewExternalPort=BS_PORT, NewProtocol="UDP")
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue