mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-03 17:30:11 +00:00
Fixed nil value of field 'cli' error
This commit is contained in:
parent
ca12bb53b4
commit
b1b21ef28d
3 changed files with 12 additions and 12 deletions
|
|
@ -43,15 +43,15 @@ function script.hooks.protocolDetected(now)
|
|||
alert_info["devproto_forbidden_id"] = proto_info["cli.disallowed_proto"]
|
||||
cli_score = 80
|
||||
srv_score = 5
|
||||
attacker = flow_info.cli.ip
|
||||
victim = flow_info.srv.ip
|
||||
attacker = flow_info["cli.ip"]
|
||||
victim = flow_info["srv.ip"]
|
||||
else
|
||||
alert_info["devproto_forbidden_peer"] = "srv"
|
||||
alert_info["devproto_forbidden_id"] = proto_info["srv.disallowed_proto"]
|
||||
cli_score = 5
|
||||
srv_score = 80
|
||||
attacker = flow_info.srv.ip
|
||||
victim = flow_info.cli.ip
|
||||
attacker = flow_info["srv.ip"]
|
||||
victim = flow_info["cli.ip"]
|
||||
end
|
||||
|
||||
local dev_proto_not_allowed_type = flow_consts.status_types.status_device_protocol_not_allowed.create(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue