Skip to content

Commit 87898d1

Browse files
committed
fix: 更新Singbox订阅配置文件热补丁,替换DNS地址并添加ECH配置注释
1 parent 6294a1d commit 87898d1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

_worker.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -998,7 +998,8 @@ function Clash订阅配置文件热补丁(Clash_原始订阅内容, uuid = null,
998998
return processedLines.join('\n');
999999
}
10001000

1001-
function Singbox订阅配置文件热补丁(sb_json_text, uuid = null, fingerprint = "chrome", ech_config = null) {
1001+
function Singbox订阅配置文件热补丁(SingBox_原始订阅内容, uuid = null, fingerprint = "chrome", ech_config = null) {
1002+
const sb_json_text = SingBox_原始订阅内容.replace('1.1.1.1', '8.8.8.8').replace('1.0.0.1', '8.8.4.4');
10021003
try {
10031004
let config = JSON.parse(sb_json_text);
10041005

@@ -1165,6 +1166,7 @@ function Singbox订阅配置文件热补丁(sb_json_text, uuid = null, fingerpri
11651166
if (ech_config) {
11661167
outbound.tls.ech = {
11671168
enabled: true,
1169+
//query_server_name: "cloudflare-ech.com",// 等待 1.13.0+ 版本上线
11681170
config: `-----BEGIN ECH CONFIGS-----\n${ech_config}\n-----END ECH CONFIGS-----`
11691171
};
11701172
}

0 commit comments

Comments
 (0)