Skip to content

Commit f464070

Browse files
committed
fix: 更新Clash订阅配置文件热补丁,修改HOSTS条目的nameserver-policy生成逻辑
1 parent c8481b2 commit f464070

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

_worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ function Clash订阅配置文件热补丁(Clash_原始订阅内容, uuid = null,
826826
// 如果 ECH 启用且 HOSTS 有效,添加 nameserver-policy
827827
if (ECH启用 && HOSTS.length > 0) {
828828
// 生成 HOSTS 的 nameserver-policy 条目
829-
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');
829+
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');
830830

831831
// 检查是否存在 nameserver-policy:
832832
const hasNameserverPolicy = /^\s{2}nameserver-policy:\s*(?:\n|$)/m.test(clash_yaml);

0 commit comments

Comments
 (0)