mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19:33 +00:00
Fixed hostname must be lowercase (#5681)
This commit is contained in:
parent
fce7511388
commit
1000b450d1
2 changed files with 6 additions and 3 deletions
|
|
@ -1557,7 +1557,7 @@ function getHostAltName(host_info)
|
|||
alt_name = ntop.getCache(getHostAltNamesKey(host_key))
|
||||
end
|
||||
|
||||
return alt_name
|
||||
return string.lower(alt_name)
|
||||
end
|
||||
|
||||
function setHostAltName(host_info, alt_name)
|
||||
|
|
@ -1632,7 +1632,7 @@ local function hostinfo2label_resolved(host_info, show_vlan, shorten_len)
|
|||
|
||||
if isEmptyString(res) then
|
||||
-- Try and get the resolved name
|
||||
res = ntop.getResolvedName(ip)
|
||||
res = string.lower(ntop.getResolvedName(ip))
|
||||
|
||||
if isEmptyString(res) then
|
||||
-- Nothing found, just fallback to the IP address
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue