[VS] Fix in ipv4_netscan the host not detected case. (#8086)

This commit is contained in:
Nicolo Maio 2023-12-11 19:50:27 +01:00
parent 8db0945eba
commit 98bea0a032
4 changed files with 28 additions and 18 deletions

View file

@ -115,11 +115,7 @@ function alert_vulnerability_scan.format(ifid, alert, alert_type_params, local_e
-- message for host not configured alert
if (alert_type_params.is_host_not_configured) then
local scan_type_label = ""
if (alert_type_params.sub_scan_type) then
scan_type_label = i18n("hosts_stats.page_scan_hosts.scan_type_list."..alert_type_params.sub_scan_type)
end
msg = msg .. i18n("vulnerability_scan.host_not_configured", {host = alert_type_params.host, scan_type_label = scan_type_label})
msg = msg .. i18n("vulnerability_scan.host_not_configured", {host = alert_type_params.host })
end
local host = alert_type_params.host_name