mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-11-02 18:43:56 +08:00
update 2026-08-14 20:53:13
This commit is contained in:
1 parent
bbea37a7c8
commit
58e04d6ceb
1972 files changed
+1523368
-299
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"]
|
||||
|
||||
Reference in new issue
Block a user