bugfix
This commit is contained in:
parent
0e2a7a3039
commit
4fb8c29d6c
@ -64,6 +64,7 @@ class AcrossNat(object):
|
||||
protocol=protocol):
|
||||
external_port += 1
|
||||
continue
|
||||
try:
|
||||
self.upnp.AddPortMapping(NewRemoteHost='',
|
||||
NewExternalPort=external_port,
|
||||
NewProtocol=protocol,
|
||||
@ -74,6 +75,8 @@ class AcrossNat(object):
|
||||
NewLeaseDuration=0
|
||||
)
|
||||
return external_port
|
||||
except:
|
||||
return None
|
||||
return None
|
||||
|
||||
def is_port_mapped(self, external_port, protocol='TCP'):
|
||||
|
Loading…
Reference in New Issue
Block a user