mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Minor fixes
This commit is contained in:
parent
b970b7797f
commit
084e295af8
4 changed files with 10426 additions and 10412 deletions
|
|
@ -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"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue