Skip to content

Commit 3d9a1a9

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 f589a7b commit 3d9a1a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

_worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2084,7 +2084,7 @@ async function forwardataTCP(host, portNum, rawData, ws, respHeader, remoteConnW
20842084

20852085
async function connectProxyIP(address, port, data = null, 所有反代数组 = null, 启用反代失败兜底 = true) {
20862086
if (所有反代数组 && 所有反代数组.length > 0) {
2087-
const 实际并发数 = Math.max(1, 反代并发拨号数);
2087+
const 实际并发数 = Math.max(1, Math.floor(Number(反代并发拨号数) || 1));
20882088
for (let i = 0; i < 所有反代数组.length; i += 实际并发数) {
20892089
const 候选列表 = [];
20902090
for (let j = 0; j < 实际并发数 && i + j < 所有反代数组.length; j++) {

0 commit comments

Comments
 (0)