mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Improves HTTP(S) server names handling
This commit is contained in:
parent
96e44265e7
commit
15d240e3cc
2 changed files with 12 additions and 4 deletions
|
|
@ -1102,8 +1102,12 @@ function flowinfo2hostname(flow_info, host_type, vlan)
|
|||
local orig_name
|
||||
|
||||
if(host_type == "srv") then
|
||||
if(flow_info["host_server_name"] ~= nil) then return(flow_info["host_server_name"]) end
|
||||
if(flow_info["protos.ssl.certificate"] ~= nil) then return(flow_info["protos.ssl.certificate"]) end
|
||||
if(flow_info["host_server_name"] ~= nil and flow_info["host_server_name"] ~= "") then
|
||||
return(flow_info["host_server_name"])
|
||||
end
|
||||
if(flow_info["protos.ssl.certificate"] ~= nil and flow_info["protos.ssl.certificate"] ~= "") then
|
||||
return(flow_info["protos.ssl.certificate"])
|
||||
end
|
||||
end
|
||||
|
||||
name = flow_info[host_type..".host"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue