mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Delete host aliases if empty
This commit is contained in:
parent
1e42102297
commit
891acbd895
2 changed files with 16 additions and 7 deletions
|
|
@ -830,7 +830,13 @@ function setHostAltName(host_info, alt_name)
|
|||
host_key = host_info
|
||||
end
|
||||
|
||||
ntop.setCache(getHostAltNamesKey(host_key), alt_name)
|
||||
local key = getHostAltNamesKey(host_key)
|
||||
|
||||
if isEmptyString(alt_name) then
|
||||
ntop.delCache(key)
|
||||
else
|
||||
ntop.setCache(key, alt_name)
|
||||
end
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue