From 0e2a7a3039fc6f609772e7098fa8a916b65a8800 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 9 Mar 2022 12:51:07 +0800 Subject: [PATCH] bugfix --- appPublic/across_nat.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/appPublic/across_nat.py b/appPublic/across_nat.py index dc2d7ff..4b5ff25 100644 --- a/appPublic/across_nat.py +++ b/appPublic/across_nat.py @@ -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='',