mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Prevents server names from being shown with ports
This commit is contained in:
parent
6e3a0e3a2d
commit
3f29fec4cb
1 changed files with 2 additions and 1 deletions
|
|
@ -1510,7 +1510,8 @@ function flowinfo2hostname(flow_info, host_type)
|
|||
|
||||
if(host_type == "srv") then
|
||||
if(flow_info["host_server_name"] ~= nil and flow_info["host_server_name"] ~= "") then
|
||||
return(flow_info["host_server_name"])
|
||||
-- remove possible ports from the name
|
||||
return(flow_info["host_server_name"]:gsub(":%d+$", ""))
|
||||
end
|
||||
if(flow_info["protos.ssl.certificate"] ~= nil and flow_info["protos.ssl.certificate"] ~= "") then
|
||||
return(flow_info["protos.ssl.certificate"])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue