From 3531f0a8efa06849d2aab84d360bb0e0632dd995 Mon Sep 17 00:00:00 2001 From: cmliu Date: Fri, 23 Jan 2026 03:27:56 +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=E7=A7=BB=E9=99=A4=E6=97=A0=E6=95=88=E7=9A=84?= =?UTF-8?q?DNS=E6=9D=A1=E7=9B=AE=E6=A0=BC=E5=BC=8F?= 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 037bb15..5d1c3ff 100644 --- a/_worker.js +++ b/_worker.js @@ -823,7 +823,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.cmliussss.com/CMLiussss${ECH_DNS ? `\n - ${ECH_DNS}` : ''}`).join('\n'); + const hostsEntries = HOSTS.map(host => ` "${host}":\n - tls://223.5.5.5\n - tls://8.8.8.8${ECH_DNS ? `\n - ${ECH_DNS}` : ''}`).join('\n'); // 检查是否存在 nameserver-policy: const hasNameserverPolicy = /^\s{2}nameserver-policy:\s*(?:\n|$)/m.test(clash_yaml);