luci-app-ssr-plus: fix support for the real sip008 subscription

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
Tianling Shen committed 2021-09-29 17:20:56 +08:00
1 parent a5dc9f7e09
commit 7d8be260a0
1 file changed
+1 -3
@@ -261,7 +261,6 @@ local function processData(szType, content)
end
elseif szType == "sip008" then
result.type = v2_ss
result.v2ray_protocol = "shadowsocks"
result.server = content.server
result.server_port = content.server_port
result.password = content.password
@@ -278,7 +277,6 @@ local function processData(szType, content)
end
elseif szType == "ssd" then
result.type = v2_ss
result.v2ray_protocol = "shadowsocks"
result.server = content.server
result.server_port = content.port
result.password = content.password
@@ -498,7 +496,7 @@ local execute = function()
nodes = servers
-- SS SIP008 直接使用 Json 格式
elseif jsonParse(raw) then
nodes = jsonParse(raw)
nodes = jsonParse(raw).servers or jsonParse(raw)
if nodes[1].server and nodes[1].method then
szType = 'sip008'
end