mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Changes for the migration to the new alerts_api.trigger_status
This commit is contained in:
parent
bccde3f618
commit
d13a4451d2
2 changed files with 2 additions and 6 deletions
|
|
@ -7,17 +7,15 @@ local alert_keys = require "alert_keys"
|
|||
-- #######################################################
|
||||
|
||||
-- @brief Prepare an alert table used to generate the alert
|
||||
-- @param alert_severity A severity as defined in `alert_consts.alert_severities`
|
||||
-- @param tls_version A string indicating the TLS version detected, or nil when version is not available
|
||||
-- @param tls_info A lua table with TLS info gererated calling `flow.getTLSInfo()`
|
||||
-- @return A table with the alert built
|
||||
local function createPotentiallyDangerous(alert_severity, tls_version, tls_info)
|
||||
local function createPotentiallyDangerous(tls_version, tls_info)
|
||||
tls_info = tls_info or {}
|
||||
local server_cn = tls_info["protos.tls.server_names"] or ""
|
||||
local client_cn = tls_info["protos.tls.client_requested_server_name"] or ""
|
||||
|
||||
local built = {
|
||||
alert_severity = alert_severity,
|
||||
alert_type_params = {
|
||||
tls_version = tls_version,
|
||||
["tls_crt.cli"] = client_cn,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue