From 87898d13f3154900f1e78ed453991246b24fca20 Mon Sep 17 00:00:00 2001 From: cmliu Date: Wed, 21 Jan 2026 20:10:17 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0Singbox=E8=AE=A2?= =?UTF-8?q?=E9=98=85=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E7=83=AD=E8=A1=A5?= =?UTF-8?q?=E4=B8=81=EF=BC=8C=E6=9B=BF=E6=8D=A2DNS=E5=9C=B0=E5=9D=80?= =?UTF-8?q?=E5=B9=B6=E6=B7=BB=E5=8A=A0ECH=E9=85=8D=E7=BD=AE=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _worker.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/_worker.js b/_worker.js index 032c2a5..001648e 100644 --- a/_worker.js +++ b/_worker.js @@ -998,7 +998,8 @@ function Clash订阅配置文件热补丁(Clash_原始订阅内容, uuid = null, return processedLines.join('\n'); } -function Singbox订阅配置文件热补丁(sb_json_text, uuid = null, fingerprint = "chrome", ech_config = null) { +function Singbox订阅配置文件热补丁(SingBox_原始订阅内容, uuid = null, fingerprint = "chrome", ech_config = null) { + const sb_json_text = SingBox_原始订阅内容.replace('1.1.1.1', '8.8.8.8').replace('1.0.0.1', '8.8.4.4'); try { let config = JSON.parse(sb_json_text); @@ -1165,6 +1166,7 @@ function Singbox订阅配置文件热补丁(sb_json_text, uuid = null, fingerpri if (ech_config) { outbound.tls.ech = { enabled: true, + //query_server_name: "cloudflare-ech.com",// 等待 1.13.0+ 版本上线 config: `-----BEGIN ECH CONFIGS-----\n${ech_config}\n-----END ECH CONFIGS-----` }; } From b367a81a19b061b8b2a5df03f76503bfcca9747a Mon Sep 17 00:00:00 2001 From: cmliu Date: Wed, 21 Jan 2026 23:34:27 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0Clash=E8=AE=A2?= =?UTF-8?q?=E9=98=85=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E7=83=AD=E8=A1=A5?= =?UTF-8?q?=E4=B8=81=EF=BC=8C=E4=BF=AE=E6=94=B9nameserver-policy=E4=B8=AD?= =?UTF-8?q?=E7=9A=84DNS=E5=9C=B0=E5=9D=80?= 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 001648e..cd9abd7 100644 --- a/_worker.js +++ b/_worker.js @@ -824,7 +824,7 @@ function Clash订阅配置文件热补丁(Clash_原始订阅内容, uuid = null, // 如果 ECH 启用且 HOSTS 有效,添加 nameserver-policy if (ECH启用 && HOSTS.length > 0) { // 生成 HOSTS 的 nameserver-policy 条目 - const hostsEntries = HOSTS.map(host => ` "${host}":\n - tls://8.8.8.8\n - https://doh.cmliussss.com/CMLiussss\n - ${ECH_DOH}`).join('\n'); + const hostsEntries = HOSTS.map(host => ` "${host}":\n - tls://223.5.5.5\n - tls://8.8.8.8\n - https://doh.cmliussss.com/CMLiussss\n - ${ECH_DOH}`).join('\n'); // 检查是否存在 nameserver-policy: const hasNameserverPolicy = /^\s{2}nameserver-policy:\s*(?:\n|$)/m.test(clash_yaml);