This commit is contained in:
yumoqing 2022-03-09 12:51:07 +08:00
parent ed3072aa17
commit 0e2a7a3039

View File

@ -60,7 +60,8 @@ class AcrossNat(object):
protocol = protocol.upper()
external_port = from_port
while external_port < 52333:
if self.upnp_map_port_check(external_port, protocol=protocol):
if self.upnp_check_external_port(external_port,
protocol=protocol):
external_port += 1
continue
self.upnp.AddPortMapping(NewRemoteHost='',