mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-03 01:10:10 +00:00
Fix always_enabled required for non-alert scripts
This commit is contained in:
parent
c9a95543dd
commit
b8f1a039fb
5 changed files with 45 additions and 13 deletions
|
|
@ -106,15 +106,15 @@ local function call_modules(l4_proto, mod_fn)
|
|||
return
|
||||
end
|
||||
|
||||
-- TODO too expensive, remove
|
||||
local info = flow.getInfo()
|
||||
local params = {
|
||||
-- Flow specific information
|
||||
flow_info = flow.getInfo(), -- TODO too expensive, remove
|
||||
}
|
||||
|
||||
for mod_key, hook_fn in pairs(hooks) do
|
||||
if do_trace then print(string.format("%s() [check: %s]: %s\n", mod_fn, mod_key, shortFlowLabel(info))) end
|
||||
|
||||
hook_fn({
|
||||
flow_info = info
|
||||
})
|
||||
hook_fn(params)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue