[VS] Add historical reports. (#8015) (#7950)

This commit is contained in:
Nicolo Maio 2023-11-20 17:06:23 +01:00
parent c7e7ee70f2
commit 34f7a42308
33 changed files with 1885 additions and 466 deletions

View file

@ -33,7 +33,7 @@ if isEmptyString(cidr) then
if (not is_edit) then
result,id = vs_utils.add_host_pref(scan_type, host,scan_ports, scan_frequency)
vs_utils.schedule_ondemand_single_host_scan(scan_type,host,scan_ports,id,false)
vs_utils.schedule_ondemand_single_host_scan(scan_type,host,scan_ports,id,false,false,false)
else
result,id = vs_utils.edit_host_pref(scan_type, host,scan_ports, scan_frequency)
end
@ -43,7 +43,7 @@ else
for _,item in ipairs(hosts_to_save) do
if (not is_edit) then
result,id = vs_utils.add_host_pref(scan_type, item,scan_ports, scan_frequency)
vs_utils.schedule_ondemand_single_host_scan(scan_type,item,scan_ports,id,false)
vs_utils.schedule_ondemand_single_host_scan(scan_type,item,scan_ports,id,false,false,false)
else
result,id = vs_utils.edit_host_pref(scan_type, item,scan_ports, scan_frequency)