mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Fix host name length. (#7233)
This commit is contained in:
parent
9fa97304db
commit
e2c3ac5d1d
1 changed files with 1 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ local function set_host_info(vlan_id, host_ip, host_name)
|
|||
|
||||
host_info.name = host_name
|
||||
if (not isEmptyString(host_info.name)) then
|
||||
host_info.name = ternary(host_info.name ~= host_info.ip and host_info.name ~= host_ip, host_info.name, "")
|
||||
host_info.name = ternary(host_info.name ~= host_info.ip and host_info.name ~= host_ip, shortenString(host_info.name), "")
|
||||
end
|
||||
|
||||
return host_info
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue