mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-11-05 09:54:11 +08:00
update 2026-09-20 23:17:18
This commit is contained in:
1 parent
735d247cbe
commit
d657bc36f5
23 files changed
+2655
-667
No files matched your search
@@ -3145,7 +3145,19 @@ let proxies = data.proxies;
|
||||
let switchable = { 'Selector': 1 };
|
||||
let readonly = { 'URLTest': 1, 'Fallback': 1, 'LoadBalance': 1, 'Relay': 1 };
|
||||
let groups = [];
|
||||
for (let gname in proxies) {
|
||||
let order = [];
|
||||
let global = proxies['GLOBAL'];
|
||||
if (global && global.all && length(global.all)) {
|
||||
for (let i = 0; i < length(global.all); i++) {
|
||||
if (global.all[i] != 'GLOBAL') push(order, global.all[i]);
|
||||
}
|
||||
} else {
|
||||
for (let gname in proxies) {
|
||||
if (gname != 'GLOBAL') push(order, gname);
|
||||
}
|
||||
}
|
||||
for (let i = 0; i < length(order); i++) {
|
||||
let gname = order[i];
|
||||
let g = proxies[gname];
|
||||
if (!g || type(g) != 'object') continue;
|
||||
let gt = g.type || '';
|
||||
|
||||
Reference in new issue
Block a user