Browse Source

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

Signed-off-by: Tianling Shen <[email protected]>
Tianling Shen 4 years ago
parent
commit
7d8be260a0
1 changed files with 1 additions and 3 deletions
  1. 1 3
      luci-app-ssr-plus/root/usr/share/shadowsocksr/subscribe.lua

+ 1 - 3
luci-app-ssr-plus/root/usr/share/shadowsocksr/subscribe.lua

@@ -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