Minor fixes

This commit is contained in:
Luca Deri 2024-11-27 15:26:31 +01:00
parent b970b7797f
commit 084e295af8
4 changed files with 10426 additions and 10412 deletions

View file

@ -38,8 +38,8 @@ end
-- ##############################################
function alert_blacklisted_server_contact:add_extra_info(alert_json)
if alert_json and alert_json.blacklist and not isEmptyString(alert_json.blacklist) then
return " [ " .. i18n("flow_details.blacklist", { blacklist = alert_json.blacklist or "" }) .. " ] "
if alert_json and alert_json.custom_cat_file and not isEmptyString(alert_json.custom_cat_file) then
return " [ " .. i18n("flow_details.blacklist", { blacklist = alert_json.custom_cat_file or "" }) .. " ] "
end
return ""
end
@ -54,6 +54,7 @@ end
function alert_blacklisted_server_contact.format(ifid, alert, alert_type_params)
local who = {}
tprint(alert)
if alert_type_params["cli_blacklisted"] and alert_type_params["cli_blacklisted"] ~= "0" then
who[#who + 1] = {
type = i18n("client"),