Fix for alert display

This commit is contained in:
Luca Deri 2021-06-18 08:51:26 +02:00
parent bcec71bc3e
commit 34897cec6b

View file

@ -58,7 +58,8 @@ function alert_lateral_movement.format(ifid, alert, alert_type_params)
" <i class=\"fas fa-fw fa-exchange-alt fa-lg\" aria-hidden=\"true\" data-original-title=\"\" title=\"\"></i> " ..
hostinfo2detailshref(server, nil, hostinfo2label(server))
rsp = rsp .. " ["..interface.getnDPIProtoName(alert.l7_proto).."]"
rsp = rsp .. " ["..interface.getnDPIProtoName(tonumber(alert.l7_proto)) or alert.l7_proto .."]"
if not isEmptyString(info) then
rsp = rsp .. "[" .. info .. "]"
end