Fixes DGA domains not properly handled over ZMQ

Fixes #5649
This commit is contained in:
Simone Mainardi 2021-07-07 19:20:39 +02:00
parent af00844931
commit 04a5a6ea78
5 changed files with 26 additions and 16 deletions

View file

@ -42,13 +42,15 @@ end
-- #######################################################
function alert_ndpi_suspicious_dga_domain.format(ifid, alert, alert_type_params)
if alert_type_params.dga_domain then
return i18n("alert_messages.suspicious_dga_domain", {
domain = alert_type_params["dga_domain"],
})
else
return
local domain = ''
if not isEmptyString(alert_type_params.dga_domain) then
domain = string.format("[%s]", alert_type_params.dga_domain)
end
return i18n("alert_messages.suspicious_dga_domain", {
domain = domain,
})
end
-- #######################################################