mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19:33 +00:00
Convert to lower on non empty (2)
This commit is contained in:
parent
1dd9efaa9d
commit
3684f2f623
1 changed files with 4 additions and 2 deletions
|
|
@ -1640,9 +1640,11 @@ local function hostinfo2label_resolved(host_info, show_vlan, shorten_len)
|
|||
|
||||
if isEmptyString(res) then
|
||||
-- Try and get the resolved name
|
||||
res = string.lower(ntop.getResolvedName(ip))
|
||||
res = ntop.getResolvedName(ip)
|
||||
|
||||
if isEmptyString(res) then
|
||||
if not isEmptyString(res) then
|
||||
res = string.lower(res)
|
||||
else
|
||||
-- Nothing found, just fallback to the IP address
|
||||
res = ip
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue