mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-10-31 04:35:13 +08:00
update 2026-08-09 16:35:03
This commit is contained in:
1 parent
ce12490610
commit
b50cf2822f
28 files changed
+137
-227
No files matched your search
@@ -180,9 +180,9 @@ do
|
||||
local flag = "Socks节点列表[" .. i .. "]备用节点的列表"
|
||||
local currentNodes = {}
|
||||
local newNodes = {}
|
||||
for k, asb_node in ipairs(t.autoswitch_backup_node) do
|
||||
if asb_node then
|
||||
local currentNode = uci:get_all(appname, asb_node) or {}
|
||||
for k, asb_node_id in ipairs(t.autoswitch_backup_node) do
|
||||
if asb_node_id then
|
||||
local currentNode = uci:get_all(appname, asb_node_id) or {}
|
||||
if currentNode[".type"] == "nodes" then
|
||||
currentNodes[#currentNodes + 1] = {
|
||||
log = true,
|
||||
@@ -1931,7 +1931,7 @@ local function update_node(manual)
|
||||
chain_node_type = (outbound_iface_group ~= "") and "iface" or chain_node_type
|
||||
end
|
||||
for _, vv in ipairs(list) do
|
||||
local cfgid = uci:section(appname, "nodes", api.gen_short_uuid())
|
||||
local cfgid = uci:section(appname, "nodes", api.gen_random_char())
|
||||
for kkk, vvv in pairs(vv) do
|
||||
if type(vvv) == "table" and next(vvv) ~= nil then
|
||||
uci:set_list(appname, cfgid, kkk, vvv)
|
||||
|
||||
Reference in new issue
Block a user