Quellcode durchsuchen

luci-app-ssr-plus: subscribe: fix parse vmess link

Fixes: #1127

Signed-off-by: Tianling Shen <[email protected]>
Tianling Shen vor 2 Jahren
Ursprung
Commit
9110a7860c
1 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. 3 3
      luci-app-ssr-plus/root/usr/share/shadowsocksr/subscribe.lua

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

@@ -223,10 +223,10 @@ local function processData(szType, content)
 		end
 		if info.tls == "tls" or info.tls == "1" then
 			result.tls = "1"
-			if info.host then
-				result.tls_host = info.host
-			elseif info.sni then
+			if info.sni and info.sni ~= "" then
 				result.tls_host = info.sni
+			elseif info.host then
+				result.tls_host = info.host
 			end
 			result.insecure = 1
 		else