Implements #4945 add label to local networks

This commit is contained in:
Matteo Biscosi 2021-02-02 13:26:46 +01:00
parent 9acd6553ed
commit 770abf38ac
6 changed files with 96 additions and 8 deletions

View file

@ -1862,7 +1862,11 @@ end
-- ##############################################
function getLocalNetworkAlias(network)
local alias = ntop.getHashCache(getLocalNetworkAliasKey(), network)
local alias = ntop.getLocalNetworkAlias(network) or nil
if not alias then
ntop.getHashCache(getLocalNetworkAliasKey(), network)
end
if not isEmptyString(alias) then
return alias