Blacklist name is now shown in blacklisted flows alerts

This commit is contained in:
Luca Deri 2022-04-26 14:56:15 +02:00
parent 4397fae2e3
commit 8f75df9797
4 changed files with 12 additions and 4 deletions

View file

@ -70,6 +70,10 @@ function alert_flow_blacklisted.format(ifid, alert, alert_type_params)
return i18n("flow_details.blacklisted_flow")
end
if alert_type_params["custom_cat_file"] then
who[#who + 1] = "('"..alert_type_params["custom_cat_file"].."' blacklist)"
end
local res = i18n("flow_details.blacklisted_flow_detailed", {who = table.concat(who, ", ")})
return res