Fix always_enabled required for non-alert scripts

This commit is contained in:
emanuele-f 2019-10-10 18:03:26 +02:00
parent c9a95543dd
commit b8f1a039fb
5 changed files with 45 additions and 13 deletions

View file

@ -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