mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-11-02 22:03: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
@@ -84,7 +84,7 @@ local function gen_include()
|
||||
end
|
||||
|
||||
local function start()
|
||||
local enabled = tonumber(uci:get(CONFIG, "@global[0]", "enable") or 0)
|
||||
local enabled = tonumber(api.uci_get_s("@global[0]", "enable") or 0)
|
||||
if enabled == nil or enabled == 0 then
|
||||
return
|
||||
end
|
||||
@@ -102,7 +102,7 @@ local function start()
|
||||
nft_file:write('flush chain inet fw4 PSW2-SERVER\n')
|
||||
nft_file:write('insert rule inet fw4 input position 0 jump PSW2-SERVER comment "PSW2-SERVER"\n')
|
||||
end
|
||||
uci:foreach(CONFIG, "server", function(server)
|
||||
api.uci_foreach_s("server", function(server)
|
||||
local id = server[".name"]
|
||||
local enable = server.enable
|
||||
if enable and tonumber(enable) == 1 then
|
||||
|
||||
Reference in new issue
Block a user