update 2026-09-06 22:47:17

This commit is contained in:
action committed 2026-09-06 22:47:17 +08:00
1 parent 51ed2622f8
commit 7b5d12b8ec
15 files changed
+1229 -30

No files matched your search

@@ -3361,9 +3361,9 @@ return { success: false, error: 'missing_yq', message: '缺少 yq,无法注入
if (!access(exploded, "r")) {
system("cp -f " + shell_quote(tmp_tpl) + " " + shell_quote(exploded));
}
/* proxy-providers 和 rule-providers 两处都注入(兼容不同模板格式) */
/* 只替换 proxy-providers.url,rule-providers 指向规则集保持原样 */
let inject_cmd = "URL=" + shell_quote(sub_url)
+ " yq e '.[\"proxy-providers\"][].url = env(URL) | .[\"rule-providers\"][].url = env(URL)' "
+ " yq e '.[\"proxy-providers\"][].url = env(URL)' "
+ shell_quote(exploded) + " > " + shell_quote(tmp_out);
if (system(inject_cmd) != 0 || !access(tmp_out, "r")) {
system("rm -f " + shell_quote(exploded));