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

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
Tianling Shen 2022-04-19 00:56:44 +08:00 committed by sbwml
parent 027f8f68fc
commit c802f96337

View File

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