mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-16 02:37:25 +00:00
NOTE: The existing alerts configuration of the users will be discarded. Some code has been added to make the current gui on/off toggle work. It is marked with the following comment: -- TODO remove after implementing the new gui
29 lines
641 B
Lua
29 lines
641 B
Lua
--
|
|
-- (C) 2019 - ntop.org
|
|
--
|
|
|
|
local mud_utils = require "mud_utils"
|
|
local user_scripts = require("user_scripts")
|
|
|
|
-- #################################################################
|
|
|
|
local script = {
|
|
-- NOTE: hooks defined below
|
|
hooks = {},
|
|
default_enabled = false,
|
|
|
|
gui = {
|
|
i18n_title = "flow_callbacks_config.mud",
|
|
i18n_description = "flow_callbacks_config.mud_description",
|
|
}
|
|
}
|
|
|
|
-- #################################################################
|
|
|
|
function script.hooks.protocolDetected(now)
|
|
mud_utils.handleFlow(now)
|
|
end
|
|
|
|
-- #################################################################
|
|
|
|
return script
|