Signed-off-by: Tianling Shen <[email protected]>
@@ -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
result.insecure = 1
else