mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-06 03:45:26 +00:00
Fixed remote to local alert wrong parameter
This commit is contained in:
parent
b033132bda
commit
da9dc17f25
1 changed files with 2 additions and 6 deletions
|
|
@ -33,7 +33,7 @@ local script = {
|
|||
|
||||
-- #################################################################
|
||||
|
||||
function script.hooks.protocolDetected(params)
|
||||
function script.hooks.protocolDetected(now, conf)
|
||||
-- Is Remote to Local?
|
||||
if flow.isRemoteToLocal() then
|
||||
local flow_info = flow.getInfo()
|
||||
|
|
@ -80,11 +80,7 @@ function script.hooks.protocolDetected(params)
|
|||
breed_or_category
|
||||
)
|
||||
|
||||
if cli_score >= (flow_consts.max_score // 2) then
|
||||
alert:set_severity(params.user_script_config.severity)
|
||||
else
|
||||
alert:set_severity(params.user_script_config.severity)
|
||||
end
|
||||
alert:set_severity(conf.severity)
|
||||
|
||||
alert:trigger_status(cli_score, srv_score, flow_score)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue