luci-app-ssr-plus: sync upstream

last commit: 63a6fe16d8
This commit is contained in:
gitea-action 2025-05-22 22:30:36 +08:00
parent e33295c8b8
commit 28550d9d44

View File

@ -177,9 +177,11 @@ end
local function processData(szType, content)
local result = {type = szType, local_port = 1234, kcp_param = '--nocomp'}
-- 检查JSON的格式如不完整丢弃
if not (szType == "sip008" or szType == "ssd") then
if not isCompleteJSON(content) then
return nil
end
end
if szType == "hysteria2" or szType == "hy2" then
local url = URL.parse("http://" .. content)