mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Added more characters to client and server names (#7294)
This commit is contained in:
parent
ddbc50c99a
commit
3fbee9463f
1 changed files with 4 additions and 4 deletions
|
|
@ -169,7 +169,7 @@ for _key, value in ipairs(flows_stats) do -- pairsByValues(vals, funct) do
|
|||
end
|
||||
|
||||
if value["cli.allowed_host"] and not ifstats.isViewed then
|
||||
local src_name = shortenString(cli_name)
|
||||
local src_name = shortenString(cli_name, 36)
|
||||
|
||||
if(value["cli.systemhost"] == true) then src_name = src_name .. " <i class='fas fa-flag'></i>" end
|
||||
src_key = hostinfo2detailshref(flow2hostinfo(value, "cli"), nil, src_name, cli_tooltip, false)
|
||||
|
|
@ -184,7 +184,7 @@ for _key, value in ipairs(flows_stats) do -- pairsByValues(vals, funct) do
|
|||
src_process = flowinfo2process(value["client_process"], hostinfo2url(value,"cli"))
|
||||
src_container = flowinfo2container(value["client_container"])
|
||||
else
|
||||
src_key = shortenString(cli_name)
|
||||
src_key = shortenString(cli_name, 36)
|
||||
|
||||
if value["cli.port"] > 0 then
|
||||
src_port = value["cli.port"]..''
|
||||
|
|
@ -192,7 +192,7 @@ for _key, value in ipairs(flows_stats) do -- pairsByValues(vals, funct) do
|
|||
end
|
||||
|
||||
if value["srv.allowed_host"] and not ifstats.isViewed then
|
||||
local dst_name = shortenString(srv_name)
|
||||
local dst_name = shortenString(srv_name, 36)
|
||||
if(value["srv.systemhost"] == true) then dst_name = dst_name .. " <i class='fas fa-flag'></i>" end
|
||||
dst_key = hostinfo2detailshref(flow2hostinfo(value, "srv"), nil, dst_name, srv_tooltip, false)
|
||||
|
||||
|
|
@ -216,7 +216,7 @@ for _key, value in ipairs(flows_stats) do -- pairsByValues(vals, funct) do
|
|||
end
|
||||
end
|
||||
else
|
||||
dst_key = shortenString(srv_name)
|
||||
dst_key = shortenString(srv_name, 36)
|
||||
|
||||
if value["srv.port"] > 0 then
|
||||
dst_port = value["srv.port"]..""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue