From c802f96337db4ba6b50785c026c2c26115298191 Mon Sep 17 00:00:00 2001 From: Tianling Shen Date: Tue, 19 Apr 2022 00:56:44 +0800 Subject: [PATCH] luci-app-ssr-plus: check standard arg first Signed-off-by: Tianling Shen --- luci-app-ssr-plus/root/usr/share/shadowsocksr/subscribe.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/luci-app-ssr-plus/root/usr/share/shadowsocksr/subscribe.lua b/luci-app-ssr-plus/root/usr/share/shadowsocksr/subscribe.lua index 8e76f246a..e1a9e1fa9 100755 --- a/luci-app-ssr-plus/root/usr/share/shadowsocksr/subscribe.lua +++ b/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