Fixed nil value of field 'cli' error

This commit is contained in:
matteo 2020-11-23 16:21:19 +01:00
parent ca12bb53b4
commit b1b21ef28d
3 changed files with 12 additions and 12 deletions

View file

@ -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(