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 | 55d8b025e8d6ea971e8ee5762c892405fedc316b (patch) | |
| tree | 4b77ce579b8fe944b9a1fa9736deec9e3d9b7a11 | |
| parent | a6a77257c5098772332b7bc026587f0d767fae1f (diff) | |
| download | crupest-55d8b025e8d6ea971e8ee5762c892405fedc316b.tar.gz crupest-55d8b025e8d6ea971e8ee5762c892405fedc316b.tar.bz2 crupest-55d8b025e8d6ea971e8ee5762c892405fedc316b.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: "日本|新加坡|香港|台湾|美国" | 
