mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Refactors {flow,host}callbacks into {flow,host}checks (C++)
This commit is contained in:
parent
cf50f4e0e7
commit
40f5c4e821
216 changed files with 895 additions and 898 deletions
|
|
@ -507,6 +507,9 @@ local function loadListItem(host, category, user_custom_categories, list, num_li
|
|||
loadWarning(string.format("Unsupported IPv6 address '%s' found in list '%s'", host, list.name))
|
||||
else
|
||||
-- Domain
|
||||
if tonumber(list) then
|
||||
tprint(debug.traceback())
|
||||
end
|
||||
if((not list) or (list.format ~= "ip")) then
|
||||
if((string.len(host) < 4) or (string.find(host, "%.") == nil)) then
|
||||
traceError(TRACE_INFO, TRACE_CONSOLE, string.format("Bad domain name '%s' in list '%s' [line: %u]", host, list and list.name, num_line))
|
||||
|
|
@ -703,6 +706,7 @@ local function reloadListsNow()
|
|||
saveListsStatusToRedis(lists, "reloadListsNow")
|
||||
|
||||
-- Load user-customized categories
|
||||
tprint(user_custom_categories)
|
||||
for category_id, hosts in pairs(user_custom_categories) do
|
||||
for _, host in ipairs(hosts) do
|
||||
if ntop.isShutdown() then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue