mirror of
https://github.com/fw876/helloworld.git
synced 2026-12-05 16:02:13 +00:00
luci-app-ssr-plus: fix support for the real sip008 subscription
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user