aboutsummaryrefslogtreecommitdiff
path: root/configs/magic/extend-script.js
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-02-09 00:12:08 +0800
committerYuqian Yang <crupest@crupest.life>2025-02-09 00:12:08 +0800
commit29ba3e88b1a7425fe00af0005b8a8228103aa21c (patch)
tree4b77ce579b8fe944b9a1fa9736deec9e3d9b7a11 /configs/magic/extend-script.js
parentd3a2767b99af2e776d9c20c5aef5c3eff679dba9 (diff)
downloadcrupest-29ba3e88b1a7425fe00af0005b8a8228103aa21c.tar.gz
crupest-29ba3e88b1a7425fe00af0005b8a8228103aa21c.tar.bz2
crupest-29ba3e88b1a7425fe00af0005b8a8228103aa21c.zip
feat(magic): update magic config.
Diffstat (limited to 'configs/magic/extend-script.js')
-rw-r--r--configs/magic/extend-script.js8
1 files changed, 4 insertions, 4 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;
}