update 2026-08-20 00:24:27

This commit is contained in:
action committed 2026-08-20 00:24:27 +08:00
1 parent b20f5dc6b6
commit 29095f77a1
1965 files changed
+1523274 -51

No files matched your search

@@ -4,12 +4,23 @@ require "luci.sys"
local ucursor = require "luci.model.uci".cursor()
local json = require "luci.jsonc"
local server_section = arg[1]
local proto = arg[2] or "tcp"
local local_port = arg[3] or "0"
local socks_port = arg[4] or "0"
-- An omitted value reaches us either as a missing argument or as an empty
-- string, depending on whether the caller quoted the expansion. Empty strings
-- are truthy in Lua, so "arg[n] or default" alone does not cover both.
local function argv(n, default)
local value = arg[n]
if value == nil or value == "" then
return default
end
return value
end
local chain = arg[5] or "0"
local server_section = arg[1]
local proto = argv(2, "tcp")
local local_port = argv(3, "0")
local socks_port = argv(4, "0")
local chain = argv(5, "0")
-- trim
local function trim(text)