mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Implements l7 category and dns request added to exclusion alerts
Implements #4942
This commit is contained in:
parent
370ed8a475
commit
12cd9069d1
5 changed files with 94 additions and 23 deletions
|
|
@ -88,23 +88,32 @@ end
|
|||
-- Getting filter configurations
|
||||
local filter_conf = config_set["filters"]
|
||||
if not filter_conf then
|
||||
goto skip_filter_conf
|
||||
goto try_filter_default_conf
|
||||
end
|
||||
|
||||
if not filter_conf[subdir] then
|
||||
goto skip_filter_conf
|
||||
goto try_filter_default_conf
|
||||
end
|
||||
|
||||
if not filter_conf[subdir][script_key] then
|
||||
goto skip_filter_conf
|
||||
goto try_filter_default_conf
|
||||
end
|
||||
|
||||
if not filter_conf[subdir][script_key]["filter"] then
|
||||
goto skip_filter_conf
|
||||
goto try_filter_default_conf
|
||||
end
|
||||
result.filters = filter_conf[subdir][script_key]["filter"]
|
||||
|
||||
::skip_filter_conf::
|
||||
tprint(result.filters)
|
||||
if table.len(result.filters) > 0 then
|
||||
goto skip_filter_conf
|
||||
end
|
||||
-------------------------------
|
||||
::try_filter_default_conf::
|
||||
-- No configuration found, trying to check if there is a default filter configured
|
||||
result.filters = user_scripts.getDefaultFilters(interface.getId(), subdir, script_key)
|
||||
|
||||
::skip_filter_conf::
|
||||
-------------------------------
|
||||
local hooks_config = user_scripts.getScriptConfig(config_set, script, subdir)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue