Fix schedule all hosts button. (#7625)

This commit is contained in:
Nicolo Maio 2023-08-02 13:22:37 +00:00
parent c482e15ba5
commit cef5d72b8d
5 changed files with 4 additions and 4 deletions

View file

@ -319,7 +319,9 @@ function vs_utils.schedule_all_hosts_scan(scan_type, host, ports)
for _,scan_info in ipairs(host_to_scan_list) do
local scan_type = scan_info.scan_type
local host = scan_info.host
local ports = scan_info.ports
local scan = { scan_type = scan_type, host = host, ports = ports }
vs_utils.set_status_scan(scan_type, host, ports)
ntop.rpushCache(host_scan_queue_key, json.encode(scan))
end