mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-03 01:10:10 +00:00
Fix Flow::isLuaCallPerformed
This commit is contained in:
parent
09dcf4e7c6
commit
e7e2f43646
2 changed files with 6 additions and 6 deletions
|
|
@ -94,17 +94,17 @@ end
|
|||
|
||||
-- Function for the actual module execution. Iterates over available (and enabled)
|
||||
-- modules, calling them one after one.
|
||||
-- @param l4_filter the L4 protocol filter
|
||||
-- @param l4_proto the L4 protocol of the flow
|
||||
-- @param mod_fn the callback to call
|
||||
local function call_modules(l4_filter, mod_fn)
|
||||
local hooks = available_modules.l4_hooks[l4_filter]
|
||||
local function call_modules(l4_proto, mod_fn)
|
||||
local hooks = available_modules.l4_hooks[l4_proto]
|
||||
|
||||
if(hooks ~= nil) then
|
||||
hooks = hooks[mod_fn]
|
||||
end
|
||||
|
||||
if(hooks == nil) then
|
||||
if do_trace then print(string.format("No flow.lua modules, skipping %s(%d) for %s\n", mod_fn, l4_filter, shortFlowLabel(flow.getInfo()))) end
|
||||
if do_trace then print(string.format("No flow.lua modules, skipping %s(%d) for %s\n", mod_fn, l4_proto, shortFlowLabel(flow.getInfo()))) end
|
||||
return
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue