mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19:33 +00:00
Added check to empty category list
This commit is contained in:
parent
ef8fe6e9e6
commit
71cb504bac
1 changed files with 5 additions and 2 deletions
|
|
@ -509,8 +509,11 @@ local function loadListItem(host, category, user_custom_categories, list, num_li
|
|||
if((host == "0.0.0.0") or (host == "0.0.0.0/0") or (host == "255.255.255.255")) then
|
||||
loadWarning(string.format("Bad IPv4 address '%s' in list '%s'", host, list.name))
|
||||
else
|
||||
ntop.loadCustomCategoryIp(host, category, list.name)
|
||||
return "ip"
|
||||
if list then
|
||||
ntop.loadCustomCategoryIp(host, category, list.name)
|
||||
end
|
||||
|
||||
return "ip"
|
||||
end
|
||||
else
|
||||
loadWarning(string.format("Invalid IPv4 address '%s' in list '%s'", host, list.name))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue