mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Display manually set host aliases in traffic report top talkers
Fixes #1419
This commit is contained in:
parent
2f12e1fd1b
commit
f515d93316
1 changed files with 4 additions and 0 deletions
|
|
@ -58,6 +58,10 @@ local function printTopTalkersTable(tbl)
|
|||
rsp = rsp..'"'..k..'": '
|
||||
if(k == "value") then
|
||||
rsp = rsp..tostring(v)
|
||||
elseif(k == "label") then
|
||||
local alt_name = getHostAltName(rv["address"])
|
||||
if isEmptyString(alt_name) or (alt_name == rv["address"]) then alt_name = rv["label"] end
|
||||
rsp = rsp..'"'..alt_name..'"'
|
||||
else
|
||||
rsp = rsp..'"'..v..'"'
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue