Fix edit host. (#7755)

This commit is contained in:
Nicolo Maio 2023-08-11 20:15:18 +02:00
parent 6790142885
commit 14c22ef251
8 changed files with 104 additions and 25 deletions

View file

@ -15,6 +15,7 @@ local host = _GET["host"]
local scan_type = _GET["scan_type"]
local ports = _GET["scan_ports"]
local single_host = toboolean(_GET["scan_single_host"]) or false
local scan_id = _GET["scan_id"]
if single_host then
@ -22,7 +23,7 @@ if single_host then
rest_utils.answer(rest_utils.consts.err.invalid_args)
end
local res = vs_utils.schedule_host_scan(scan_type, host, ports)
local res = vs_utils.schedule_host_scan(scan_type, host, ports, scan_id)
if res then
rest_utils.answer(rest_utils.consts.success.ok)