Fix blacklisted host alerts not generated when reading from PCAP dump

This commit is contained in:
emanuele-f 2019-09-03 17:35:14 +02:00
parent a5b5510290
commit 8e6cd5962a
4 changed files with 27 additions and 5 deletions

View file

@ -480,6 +480,7 @@ end
local function reloadListsNow()
local user_custom_categories = categories_utils.getAllCustomCategoryHosts()
local lists = lists_utils.getCategoryLists()
local start_t = os.time()
-- Load hosts from cached URL lists
for list_name, list in pairsByKeys(lists) do
@ -502,6 +503,9 @@ local function reloadListsNow()
end
end
local end_t = os.time()
traceError(TRACE_INFO, TRACE_CONSOLE, string.format("Lists loaded in %d seconds", (end_t - start_t)))
-- Reload into memory
ntop.reloadCustomCategories()
ntop.reloadJA3Hashes()