Implements crypto miners alerts toggle

Implements #1826
This commit is contained in:
Simone Mainardi 2018-07-20 13:15:06 +02:00
parent 54e01e81f7
commit 25588290eb
8 changed files with 26 additions and 7 deletions

View file

@ -214,7 +214,7 @@ function printAlerts()
end
local elementToSwitch = { "max_num_alerts_per_entity", "max_num_flow_alerts", "row_toggle_alert_probing",
"row_toggle_malware_probing", "row_toggle_alert_syslog",
"row_toggle_malware_probing", "row_toggle_dns_alerts", "row_toggle_alert_syslog",
"row_toggle_flow_alerts_iface", "row_alerts_retention_header", "row_alerts_security_header",
"row_toggle_ssl_alerts", "row_toggle_dns_alerts", "row_toggle_remote_to_remote_alerts",
"row_toggle_ip_reassignment_alerts", "row_toggle_dropped_flows_alerts", "row_alerts_informative_header",
@ -308,6 +308,13 @@ function printAlerts()
})
end
prefsToggleButton({
field = "toggle_mining_alerts",
pref = "mining_alerts",
default = "1",
hidden = not showElements,
})
prefsToggleButton({
field = "toggle_malware_probing",
pref = "host_blacklist",