From f299a6536a29f38dd181cd86253714d1bea2e980 Mon Sep 17 00:00:00 2001 From: cmliu Date: Fri, 23 Jan 2026 16:52:15 +0800 Subject: [PATCH] =?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=E6=9D=A1?= =?UTF-8?q?=E7=9B=AE=E7=9A=84=E7=94=9F=E6=88=90=E9=80=BB=E8=BE=91?= 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 a3f3347..f99adab 100644 --- a/_worker.js +++ b/_worker.js @@ -826,7 +826,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://223.5.5.5\n - tls://8.8.8.8\n - https://doh.090227.xyz/CMLiussss${ECH_DNS ? `\n - ${ECH_DNS}` : ''}`).join('\n'); + const hostsEntries = HOSTS.map(host => ` "${host}":\n - https://doh.cm.edu.kg/CMLiussss${ECH_DNS ? `\n - ${ECH_DNS}` : ''}\n - tls://223.5.5.5\n - tls://8.8.8.8`).join('\n'); // 检查是否存在 nameserver-policy: const hasNameserverPolicy = /^\s{2}nameserver-policy:\s*(?:\n|$)/m.test(clash_yaml);