mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Fixes various lua memory issues
This commit is contained in:
parent
eb52f62b1e
commit
5edfdeedcd
53 changed files with 336 additions and 551 deletions
|
|
@ -654,25 +654,6 @@ function setHostNotes(host_info, notes)
|
|||
ntop.setCache(getHostNotesKey(host_key), notes)
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
||||
function mac2label(mac)
|
||||
local alt_name = getHostAltName(mac)
|
||||
|
||||
if not isEmptyString(alt_name) and (alt_name ~= mac) then
|
||||
return(alt_name)
|
||||
end
|
||||
|
||||
alt_name = ntop.getCache(getDhcpNameKey(interface.getId(), mac))
|
||||
|
||||
if not isEmptyString(alt_name) and (alt_name ~= mac) then
|
||||
return(alt_name)
|
||||
end
|
||||
|
||||
-- Fallback: just the MAC
|
||||
return(mac)
|
||||
end
|
||||
|
||||
|
||||
|
||||
-- ##############################################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue