mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-06 03:45:26 +00:00
Avoid flow.lua overhead if all the modules are disabled
This commit is contained in:
parent
e31afe72d6
commit
e4f1d1f5d3
4 changed files with 45 additions and 8 deletions
|
|
@ -8,6 +8,12 @@ local flow_module = {}
|
|||
|
||||
-- #################################################################
|
||||
|
||||
function flow_module.setup()
|
||||
return(mud_utils.isMUDRecordingEnabled(interface.getId()))
|
||||
end
|
||||
|
||||
-- #################################################################
|
||||
|
||||
function flow_module.protocolDetected(info)
|
||||
mud_utils.handleFlow(info)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue