update 2026-08-13 20:57:15

This commit is contained in:
action committed 2026-08-13 20:57:15 +08:00
1 parent 90a7fd0798
commit 172837898d
20 files changed
+352 -265

No files matched your search

@@ -4,9 +4,13 @@ local uci = api.uci
local jsonc = api.jsonc
function gen_config_server(node)
local user = nil
if node.user then
user = uci:get_all("passwall2_server", node.user)
end
local config = {}
config.server_port = tonumber(node.port)
config.password = node.password
config.password = user and user.password or ""
config.timeout = tonumber(node.timeout)
config.fast_open = (node.tcp_fast_open and node.tcp_fast_open == "1") and true or false
config.method = node.method