From f3849c4a95d2bbc7ee32f55e4c26c20c05651250 Mon Sep 17 00:00:00 2001 From: cmliu Date: Tue, 27 May 2025 03:12:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DNAT64=E4=BB=A3=E7=90=86?= =?UTF-8?q?=E8=BF=9E=E6=8E=A5=E9=80=BB=E8=BE=91=EF=BC=8C=E4=BB=85=E5=9C=A8?= =?UTF-8?q?=E6=9C=AA=E4=BD=BF=E7=94=A8=E5=85=A8=E5=B1=80Socks5=E6=97=B6?= =?UTF-8?q?=E8=BF=9B=E8=A1=8C=E5=85=9C=E5=BA=95=E8=BF=9E=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 明文源码.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/明文源码.js b/明文源码.js index a65fc18..bfa70b4 100644 --- a/明文源码.js +++ b/明文源码.js @@ -393,9 +393,11 @@ async function handleTCPOutBound(remoteSocket, addressType, addressRemote, portR } async function nat64() { - const nat64Proxyip = `[${await resolveToIPv6(addressRemote)}]`; - log(`NAT64 代理连接到 ${nat64Proxyip}:443`); - tcpSocket = await connectAndWrite(nat64Proxyip, '443'); + if (!useSocks) { + const nat64Proxyip = `[${await resolveToIPv6(addressRemote)}]`; + log(`NAT64 代理连接到 ${nat64Proxyip}:443`); + tcpSocket = await connectAndWrite(nat64Proxyip, '443'); + } tcpSocket.closed.catch(error => { console.log('retry tcpSocket closed error', error); }).finally(() => {