mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-10-31 11:55:13 +08:00
update 2026-08-14 04:36:07
This commit is contained in:
1 parent
e716bb6996
commit
5ce413d3a3
74 files changed
+693
-819
No files matched your search
@@ -6,7 +6,7 @@ local jsonc = api.jsonc
|
||||
function gen_config_server(node)
|
||||
local user = nil
|
||||
if node.user then
|
||||
user = uci:get_all("passwall2_server", node.user)
|
||||
user = uci:get_all(api.s_config, node.user)
|
||||
end
|
||||
|
||||
local config = {}
|
||||
@@ -41,7 +41,7 @@ function gen_config(var)
|
||||
print("node Cannot be empty!")
|
||||
return
|
||||
end
|
||||
local node = uci:get_all("passwall2", node_id)
|
||||
local node = uci:get_all(api.c_config, node_id)
|
||||
local server_host = var["server_host"] or (node.address or ""):lower()
|
||||
local server_port = var["server_port"] or node.port
|
||||
local local_addr = var["local_addr"]
|
||||
|
||||
Reference in new issue
Block a user