mirror of
https://github.com/lush2020/edgetunnel.git
synced 2026-03-25 01:40:02 +08:00
修复NAT64代理连接逻辑,仅在未使用全局Socks5时进行兜底连接
This commit is contained in:
8
明文源码.js
8
明文源码.js
@@ -393,9 +393,11 @@ async function handleTCPOutBound(remoteSocket, addressType, addressRemote, portR
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function nat64() {
|
async function nat64() {
|
||||||
const nat64Proxyip = `[${await resolveToIPv6(addressRemote)}]`;
|
if (!useSocks) {
|
||||||
log(`NAT64 代理连接到 ${nat64Proxyip}:443`);
|
const nat64Proxyip = `[${await resolveToIPv6(addressRemote)}]`;
|
||||||
tcpSocket = await connectAndWrite(nat64Proxyip, '443');
|
log(`NAT64 代理连接到 ${nat64Proxyip}:443`);
|
||||||
|
tcpSocket = await connectAndWrite(nat64Proxyip, '443');
|
||||||
|
}
|
||||||
tcpSocket.closed.catch(error => {
|
tcpSocket.closed.catch(error => {
|
||||||
console.log('retry tcpSocket closed error', error);
|
console.log('retry tcpSocket closed error', error);
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user