🔥 Sync 2026-08-14 20:56:42

This commit is contained in:
github-actions[bot] committed 2026-08-14 20:56:42 +08:00
1 parent badefb504c
commit 2ef703a2e1
20 files changed
+639 -321

No files matched your search

@@ -1,12 +1,11 @@
module("luci.passwall2.util_shadowsocks", package.seeall)
local api = require "luci.passwall2.api"
local uci = api.uci
local jsonc = api.jsonc
function gen_config_server(node)
local user = nil
if node.user then
user = uci:get_all(api.s_config, node.user)
user = api.uci_get_s(node.user)
end
local config = {}
@@ -41,7 +40,7 @@ function gen_config(var)
print("node Cannot be empty!")
return
end
local node = uci:get_all(api.c_config, node_id)
local node = api.uci_get_c(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"]