瀏覽代碼

luci-app-ssr-plus: check standard arg first

Signed-off-by: Tianling Shen <[email protected]>
Tianling Shen 3 年之前
父節點
當前提交
dd49b31521
共有 1 個文件被更改,包括 3 次插入3 次删除
  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

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