mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-06 03:45:26 +00:00
Move callbacks scripts into separate tab
This commit is contained in:
parent
7c2898abe8
commit
bee1efdded
46 changed files with 237 additions and 177 deletions
|
|
@ -1,35 +0,0 @@
|
|||
--
|
||||
-- (C) 2019 - ntop.org
|
||||
--
|
||||
|
||||
local mud_utils = require "mud_utils"
|
||||
local alerts_api = require "alerts_api"
|
||||
|
||||
-- #################################################################
|
||||
|
||||
local check_module = {
|
||||
key = "mud",
|
||||
|
||||
gui = {
|
||||
i18n_title = "flow_callbacks_config.mud",
|
||||
i18n_description = "flow_callbacks_config.mud_description",
|
||||
input_builder = alerts_api.flow_checkbox_input_builder,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
-- #################################################################
|
||||
|
||||
function check_module.setup()
|
||||
return(mud_utils.isMUDRecordingEnabled(interface.getId()))
|
||||
end
|
||||
|
||||
-- #################################################################
|
||||
|
||||
function check_module.protocolDetected(info)
|
||||
mud_utils.handleFlow(info)
|
||||
end
|
||||
|
||||
-- #################################################################
|
||||
|
||||
return check_module
|
||||
Loading…
Add table
Add a link
Reference in a new issue