From 5e56064ec6b3cb371d8e76388b63c3507ae0d646 Mon Sep 17 00:00:00 2001 From: lbl8603 <49143209+lbl8603@users.noreply.github.com> Date: Sat, 29 Jun 2024 17:26:52 +0800 Subject: [PATCH] =?UTF-8?q?ipv6=E8=BD=ACipv4=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnt/src/channel/punch.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vnt/src/channel/punch.rs b/vnt/src/channel/punch.rs index fc79063..225e5dd 100644 --- a/vnt/src/channel/punch.rs +++ b/vnt/src/channel/punch.rs @@ -265,7 +265,7 @@ impl Punch { self.external_route.route(ip).is_none() && device_info.not_in_network(*ip) }); nat_info.ipv6.filter(|ip| { - if let Some(ip) = ip.to_ipv4_mapped() { + if let Some(ip) = ip.to_ipv4() { self.external_route.route(&ip).is_none() } else { true