mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
parent
94b498436c
commit
d1d598e0a2
9 changed files with 47 additions and 17 deletions
|
|
@ -1591,10 +1591,14 @@ local function label2formattedlabel(alt_name, host_info, show_vlan, shorten_len)
|
|||
|
||||
-- Special shorting function for IP addresses
|
||||
if res ~= ip then
|
||||
if shorten_len then
|
||||
res = shortenString(res, shorten_len)
|
||||
else
|
||||
res = shortenString(res)
|
||||
if shorten_len == false then
|
||||
-- Don't touch the string, requested as-is without shortening
|
||||
elseif tonumber(shorten_len) then
|
||||
-- Shorten according to the specified length
|
||||
res = shortenString(res, shorten_len)
|
||||
else
|
||||
-- Use the default system-wide setting for the shortening
|
||||
res = shortenString(res)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
@ -1676,6 +1680,7 @@ function hostinfo2label(host_info, show_vlan, shorten_len)
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
return label2formattedlabel(res, host_info, show_vlan, shorten_len)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue