mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Added host ip tooltip (#7054)
This commit is contained in:
parent
add1d35b68
commit
a30bf4e261
1 changed files with 4 additions and 1 deletions
|
|
@ -586,6 +586,7 @@ local function formatFlowHost(flow, cli_or_srv, historical_bounds, hyperlink_suf
|
|||
end
|
||||
|
||||
local host
|
||||
local tooltip = ''
|
||||
if(cli_or_srv) then
|
||||
host = interface.getHostMinInfo(flow[cli_or_srv .. ".ip"], flow[cli_or_srv .. ".vlan"])
|
||||
else
|
||||
|
|
@ -597,9 +598,11 @@ local function formatFlowHost(flow, cli_or_srv, historical_bounds, hyperlink_suf
|
|||
|
||||
if(host ~= nil) then
|
||||
host_name = host["name"]
|
||||
tooltip = host["ip"]
|
||||
|
||||
if isEmptyString(host_name) then
|
||||
host_name = host["ip"]
|
||||
tooltip = ''
|
||||
end
|
||||
end
|
||||
|
||||
|
|
@ -614,7 +617,7 @@ local function formatFlowHost(flow, cli_or_srv, historical_bounds, hyperlink_suf
|
|||
mac = host["mac"]
|
||||
end
|
||||
|
||||
return hostinfo2detailshref(flow2hostinfo(flow, cli_or_srv), hyperlink_params, host_name, nil, true --[[ perform link existance checks --]]), mac
|
||||
return hostinfo2detailshref(flow2hostinfo(flow, cli_or_srv), hyperlink_params, host_name, tooltip, true --[[ perform link existance checks --]]), mac
|
||||
end
|
||||
|
||||
local function formatFlowPort(flow, cli_or_srv, port, historical_bounds)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue