Skip to content

Commit c2cd245

Browse files
cmliuCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 7e14b80 commit c2cd245

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

_worker.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1927,9 +1927,8 @@ async function forwardataTCP(host, portNum, rawData, ws, respHeader, remoteConnW
19271927
? (ipList.length > ipv4List.length ? 'A+AAAA' : 'A')
19281928
: 'AAAA';
19291929
if (ipList.length === 0) {
1930-
const err = new Error(`[TCP直连] ${address} 的 A/AAAA 记录均为空,连接终止。`);
1931-
err.name = '预加载解析为空';
1932-
throw err;
1930+
log(`[TCP直连] ${address} 的 A/AAAA 未获得可用解析结果,预加载竞速不可用,回退到原始 hostname 直连。`);
1931+
return null;
19331932
}
19341933
const 选中IP列表 = ipList;
19351934
log(`[TCP直连] ${address} A记录:${ipv4List.length} AAAA记录:${ipv6List.length},使用${使用记录类型}记录,竞速拨号 ${选中IP列表.length}/${拨号上限}: ${选中IP列表.join(', ')}`);

0 commit comments

Comments
 (0)