mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Added check to avoid nil value error
This commit is contained in:
parent
8136eca368
commit
3c3aa5a25f
1 changed files with 2 additions and 0 deletions
|
|
@ -1903,6 +1903,8 @@ function flowinfo2hostname(flow_info, host_type, alerts_view)
|
|||
return(flow_info[host_type..".ip"])
|
||||
end
|
||||
|
||||
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
|
||||
-- remove possible ports from the name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue