mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19:33 +00:00
Convert to lower on non empty
This commit is contained in:
parent
488c3c96aa
commit
1dd9efaa9d
1 changed files with 5 additions and 1 deletions
|
|
@ -1557,7 +1557,11 @@ function getHostAltName(host_info)
|
|||
alt_name = ntop.getCache(getHostAltNamesKey(host_key))
|
||||
end
|
||||
|
||||
return string.lower(alt_name)
|
||||
if not isEmptyString(alt_name) then
|
||||
alt_name = string.lower(alt_name)
|
||||
end
|
||||
|
||||
return alt_name
|
||||
end
|
||||
|
||||
function setHostAltName(host_info, alt_name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue