mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Avoids setting host names when NDPI_HTTP_NUMERIC_IP_HOST is detected
This commit is contained in:
parent
0736691af0
commit
de9886d5db
2 changed files with 3 additions and 3 deletions
|
|
@ -1946,7 +1946,7 @@ function flowinfo2hostname(flow_info, host_type, alerts_view)
|
|||
if(flow_info == nil) then return("") end
|
||||
|
||||
if(host_type == "srv") then
|
||||
if flow_info["host_server_name"] ~= nil and flow_info["host_server_name"] ~= "" and flow_info["host_server_name"]:match("%w") then
|
||||
if flow_info["host_server_name"] ~= nil and flow_info["host_server_name"] ~= "" and flow_info["host_server_name"]:match("%w") and not isIPv4(flow_info["host_server_name"]) and not isIPv6(flow_info["host_server_name"]) then
|
||||
-- remove possible ports from the name
|
||||
return(flow_info["host_server_name"]:gsub(":%d+$", ""))
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue