[VS] Fix alert url.

This commit is contained in:
Nicolo Maio 2023-11-20 12:16:31 +01:00
parent 6a9c6e4f92
commit 8864c52fef

View file

@ -125,7 +125,7 @@ function alert_vulnerability_scan.format(ifid, alert, alert_type_params, local_e
local scan_type_label = i18n(string.format("hosts_stats.page_scan_hosts.scan_type_list.%s",scan_type))
local url = string.format("%s/lua/vulnerability_scan.lua?host=%s&scan_type=%s&scan_return_result=true&page=show_result&scan_date=%s",ntop.getHttpPrefix(),alert_type_params.host,scan_type,alert_type_params.date)
local url = string.format("%s/lua/vulnerability_scan.lua?host=%s&scan_type=%s&scan_return_result=true&page=show_result&scan_date=%s",getHttpHost() .. ntop.getHttpPrefix(),alert_type_params.host,scan_type,alert_type_params.date)
local alert_descr = i18n('vulnerability_scan.host_alert', { host = host, msg = msg, url = url, scan_type = scan_type_label })