Skip to content

Commit 97343ee

Browse files
committed
fix: 更新Clash订阅配置文件热补丁,优化HOSTS条目生成逻辑,使用tls协议替代原有配置
1 parent 11964e6 commit 97343ee

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
@@ -790,7 +790,7 @@ function Clash订阅配置文件热补丁(Clash_原始订阅内容, uuid = null,
790790
if (!ECH启用 || HOSTS.length === 0) return Clash_原始订阅内容;
791791

792792
// 生成 HOSTS 的 nameserver-policy 条目
793-
const hostsEntries = HOSTS.map(host => ` "${host}":\n - https://doh.cmliussss.com/CMLiussss\n - ${ECH_DOH}`).join('\n');
793+
const hostsEntries = HOSTS.map(host => ` "${host}":\n - tls://8.8.8.8\n - https://doh.cmliussss.com/CMLiussss\n - ${ECH_DOH}`).join('\n');
794794

795795
// 完整的 DNS 配置块(用于没有 dns: 字段时添加)
796796
const fullDnsBlock = `dns:

0 commit comments

Comments
 (0)