diff options
author | Yuqian Yang <crupest@crupest.life> | 2025-02-09 00:12:08 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-02-09 00:12:08 +0800 |
commit | 29ba3e88b1a7425fe00af0005b8a8228103aa21c (patch) | |
tree | 4b77ce579b8fe944b9a1fa9736deec9e3d9b7a11 | |
parent | d3a2767b99af2e776d9c20c5aef5c3eff679dba9 (diff) | |
download | crupest-29ba3e88b1a7425fe00af0005b8a8228103aa21c.tar.gz crupest-29ba3e88b1a7425fe00af0005b8a8228103aa21c.tar.bz2 crupest-29ba3e88b1a7425fe00af0005b8a8228103aa21c.zip |
feat(magic): update magic config.
-rw-r--r-- | configs/magic/extend-script.js | 8 | ||||
-rw-r--r-- | configs/magic/extend.yaml | 7 |
2 files changed, 8 insertions, 7 deletions
diff --git a/configs/magic/extend-script.js b/configs/magic/extend-script.js index dd1475c..519cee9 100644 --- a/configs/magic/extend-script.js +++ b/configs/magic/extend-script.js @@ -12,10 +12,10 @@ function main(config, profileName) { config["proxies"] = [config["crupest-proxy"], ...config["proxies"]] delete config["crupest-proxy"] - select_proxy = { name: "node-select", type: "select", proxies: ["fallback", ...config.proxies.map(p => p.name)] } - fallback_proxy = config["crupest-fallback"] - config["proxy-groups"] = [ select_proxy, fallback_proxy ] - delete config["crupest-fallback"] + select_proxy = { name: "node-select", type: "select", proxies: ["auto-select", ...config.proxies.map(p => p.name)] } + auto_select_proxy = config["crupest-auto-select"] + config["proxy-groups"] = [ select_proxy, auto_select_proxy ] + delete config["crupest-auto-select"] return config; } diff --git a/configs/magic/extend.yaml b/configs/magic/extend.yaml index 5ec1b9e..3006f08 100644 --- a/configs/magic/extend.yaml +++ b/configs/magic/extend.yaml @@ -55,9 +55,10 @@ rules: crupest-proxy: ... -crupest-fallback: - name: "fallback" - type: fallback +crupest-auto-select: + name: "auto-select" + type: url-test + interval: 1800 include-all-proxies: true url: 'https://www.gstatic.com/generate_204' filter: "日本|新加坡|香港|台湾|美国" |