From 5a70ec642f6cadf6e4a0280479d4ec071d7383cc Mon Sep 17 00:00:00 2001 From: gitea-action Date: Fri, 28 Mar 2025 09:00:22 +0800 Subject: [PATCH] luci-app-passwall: sync upstream last commit: https://github.com/xiaorouji/openwrt-passwall/commit/9b3477108c3a20fc9b59649df105d011e7ccde7c --- luci-app-passwall/root/usr/share/passwall/subscribe.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/luci-app-passwall/root/usr/share/passwall/subscribe.lua b/luci-app-passwall/root/usr/share/passwall/subscribe.lua index 8dfb782c6..eaf6409c4 100755 --- a/luci-app-passwall/root/usr/share/passwall/subscribe.lua +++ b/luci-app-passwall/root/usr/share/passwall/subscribe.lua @@ -187,7 +187,9 @@ do local i = 0 local option = "lbss" 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 uci:foreach(appname, "haproxy_config", function(t) i = i + 1