Esempio n. 1
0
 def _call_upnp(port):
     # start messing with upnp settings
     # success can be false if you're behind a router that doesn't support upnp
     # or if you are not behind a router at all and have an external ip address
     shutdowner.A('block')
     success, port = run_upnpc.update(port)
     shutdowner.A('unblock')
     return (success, port)
Esempio n. 2
0
 def _run_upnpc(port):
     shutdowner.A('block')
     run_upnpc.update(port)
     shutdowner.A('unblock')