From d58615ac7cf92b8ebbbf743d4f010170e2c76e14 Mon Sep 17 00:00:00 2001 From: cmliu Date: Thu, 27 Feb 2025 04:53:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=5Fworker.js=EF=BC=8C?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AF=B9Clash=E5=92=8CSingbox=E8=AE=A2?= =?UTF-8?q?=E9=98=85=E5=86=85=E5=AE=B9=E7=9A=84=E5=8C=B9=E9=85=8D=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _worker.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_worker.js b/_worker.js index 7efdd8e..037a9d7 100644 --- a/_worker.js +++ b/_worker.js @@ -425,10 +425,10 @@ async function getSUB(api, request, 追加UA, userAgentHeader) { // 检查响应状态是否为'fulfilled' if (response.status === 'fulfilled') { const content = await response.value || 'null'; // 获取响应的内容 - if (content.includes('proxies') && content.includes('proxy-groups')) { + if (content.includes('proxies:')) { //console.log('Clash订阅: ' + response.apiUrl); 订阅转换URLs += "|" + response.apiUrl; // Clash 配置 - } else if (content.includes('outbounds') && content.includes('inbounds')) { + } else if (content.includes('outbounds":') && content.includes('inbounds":')) { //console.log('Singbox订阅: ' + response.apiUrl); 订阅转换URLs += "|" + response.apiUrl; // Singbox 配置 } else if (content.includes('://')) {