luci-app-passwall: sync upstream

last commit: 9b3477108c
This commit is contained in:
gitea-action 2025-03-28 09:00:22 +08:00
parent 321573fa35
commit 5a70ec642f

View File

@ -187,7 +187,9 @@ do
local i = 0 local i = 0
local option = "lbss" local option = "lbss"
local function is_ip_port(str) local function is_ip_port(str)
return str:match("^%d+%.%d+%.%d+%.%d+:%d+$") ~= nil if type(str) ~= "string" then return false end
local ip, port = str:match("^([%d%.]+):(%d+)$")
return ip and datatypes.ipaddr(ip) and tonumber(port) and tonumber(port) <= 65535
end end
uci:foreach(appname, "haproxy_config", function(t) uci:foreach(appname, "haproxy_config", function(t)
i = i + 1 i = i + 1