🎉 Sync 2026-08-16 20:12:56

This commit is contained in:
github-actions[bot] committed 2026-08-16 20:12:56 +08:00
1 parent 9b55ece5a0
commit 4d7a192cc2
43 files changed
+883 -835

No files matched your search

@@ -523,14 +523,13 @@ end
function delete_select_nodes()
local ids = http.formvalue("ids")
local redirect = http.formvalue("redirect")
local ids_t = {}
string.gsub(ids, '[^' .. "," .. ']+', function(w)
ids_t[#ids_t + 1] = w
if (uci_get("@global[0]", "node") or "") == w then
uci_del('@global[0]', "node")
end
uci_foreach("socks", function(t)
if t["node"] == w then
uci_del(t[".name"])
end
local changed = false
local auto_switch_node_list = uci_get(t[".name"], "autoswitch_backup_node") or {}
for i = #auto_switch_node_list, 1, -1 do
@@ -542,6 +541,14 @@ function delete_select_nodes()
if changed then
uci_set(t[".name"], "autoswitch_backup_node", auto_switch_node_list)
end
if t["node"] == w then
local new_node = api.get_random_normal_node(ids_t)
if new_node then
uci_set(t[".name"], "node", new_node[".name"])
else
uci_set(t[".name"], "enabled", "0")
end
end
end)
uci_foreach("haproxy_config", function(t)
if t["lbss"] == w then