mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
parent
c7e7ee70f2
commit
34f7a42308
33 changed files with 1885 additions and 466 deletions
|
|
@ -23,7 +23,11 @@ if single_host then
|
|||
rest_utils.answer(rest_utils.consts.err.invalid_args)
|
||||
end
|
||||
|
||||
local res = vs_utils.schedule_ondemand_single_host_scan(scan_type, host, ports, scan_id)
|
||||
local is_single_scan = single_host
|
||||
local is_all = not single_host
|
||||
local is_periodic = not single_host
|
||||
|
||||
local res = vs_utils.schedule_ondemand_single_host_scan(scan_type, host, ports, scan_id, is_periodic, is_all, is_single_scan)
|
||||
|
||||
if res then
|
||||
rest_utils.answer(rest_utils.consts.success.ok)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue