update 2026-08-19 16:30:12

This commit is contained in:
action committed 2026-08-19 16:30:12 +08:00
1 parent 98910716ab
commit ef8926d781
9 files changed
+39 -38

No files matched your search

@@ -31,6 +31,10 @@ for sid in $(uci -q show passwall_server | sed -n 's/^passwall_server\.\([^.=]*\
uci -q set "passwall_server.${sid}=server"
fi
done
for sid in $(uci -q show passwall_server | sed -n 's/^passwall_server\.\([^.=]*\)\.protocol=dokodemo-door$/\1/p'); do
uci -q set "passwall_server.${sid}.protocol=tunnel"
done
uci -q commit passwall_server
rm -f /tmp/luci-indexcache /tmp/luci-indexcache.*
@@ -145,13 +145,14 @@ do
CONFIG[#CONFIG + 1] = {
log = true,
remarks = name .. "节点",
currentNode = node_id and (function()
local section = uci_get(node_id) or {}
currentNode = (function(id)
local section = id and uci_get(id) or nil
if not section then return nil end
if section[".type"] == "socks" then
return { Socks = node_id }
return { Socks = id }
end
return section
end)() or nil,
end)(node_id),
set = function(o, server)
uci_set(szType, option, server)
o.newNodeId = server
@@ -264,13 +265,14 @@ do
log = true,
id = t[".name"],
remarks = "访问控制列表[" .. i .. "]",
currentNode = node_id and (function()
local section = uci_get(node_id) or {}
currentNode = (function(id)
local section = id and uci_get(id) or nil
if not section then return nil end
if section[".type"] == "socks" then
return { Socks = node_id }
return { Socks = id }
end
return section
end)() or nil,
end)(node_id),
set = function(o, server)
uci_set(t[".name"], option, server)
o.newNodeId = server