From 0e69e39e5f61eb865b67901dcf802e8e53a99c07 Mon Sep 17 00:00:00 2001 From: cmliu Date: Sun, 9 Nov 2025 20:20:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E4=BC=98=E9=80=89?= =?UTF-8?q?=E8=AE=A2=E9=98=85=E7=94=9F=E6=88=90=E9=80=BB=E8=BE=91=EF=BC=8C?= =?UTF-8?q?=E7=A1=AE=E4=BF=9D=E4=BB=85=E5=B0=86HTTPS=E9=93=BE=E6=8E=A5?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=88=B0=E4=BC=98=E9=80=89API=E5=88=97?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _worker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_worker.js b/_worker.js index e62408b..2c5e8d2 100644 --- a/_worker.js +++ b/_worker.js @@ -224,7 +224,7 @@ export default { const 完整优选列表 = config_JSON.优选订阅生成.本地IP库.随机IP ? (await 生成随机IP(request, config_JSON.优选订阅生成.本地IP库.随机数量))[0] : await env.KV.get('ADD.txt') ? await 整理成数组(await env.KV.get('ADD.txt')) : (await 生成随机IP(request, config_JSON.优选订阅生成.本地IP库.随机数量))[0]; const 优选API = [], 优选IP = [], 其他节点 = []; for (const 元素 of 完整优选列表) { - if (元素.toLowerCase().startsWith('https://') || 元素.toLowerCase().startsWith('http://')) 优选API.push(元素); + if (元素.toLowerCase().startsWith('https://')) 优选API.push(元素); else if (元素.toLowerCase().includes('://')) 其他节点.push(元素); else 优选IP.push(元素); }