From 0b30ee8be3fdf5e748d5428fe2275d6045d64f98 Mon Sep 17 00:00:00 2001 From: cmliu Date: Mon, 22 Dec 2025 17:28:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0=E4=BC=98=E9=80=89?= =?UTF-8?q?=E8=8A=82=E7=82=B9=E5=A4=84=E7=90=86=E9=80=BB=E8=BE=91=EF=BC=8C?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E5=9C=B0=E5=9D=80=E5=A4=87=E6=B3=A8=E7=9A=84?= =?UTF-8?q?=E7=BC=96=E7=A0=81=E4=B8=8E=E8=A7=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _worker.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/_worker.js b/_worker.js index 4e76bf1..77ea54a 100644 --- a/_worker.js +++ b/_worker.js @@ -238,8 +238,12 @@ export default { const 优选API = [], 优选IP = [], 其他节点 = []; for (const 元素 of 完整优选列表) { if (元素.toLowerCase().startsWith('https://')) 优选API.push(元素); - else if (元素.toLowerCase().includes('://')) 其他节点.push(元素); - else 优选IP.push(元素); + else if (元素.toLowerCase().includes('://')) { + if (元素.includes('#')) { + const 地址备注分离 = 元素.split('#'); + 其他节点.push(地址备注分离[0] + '#' + encodeURIComponent(decodeURIComponent(地址备注分离[1]))); + } else 其他节点.push(元素); + } else 优选IP.push(元素); } 其他节点LINK = 其他节点.join('\n') + '\n'; const 优选API的IP = await 请求优选API(优选API);