mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Fix edit host. (#7755)
This commit is contained in:
parent
6790142885
commit
14c22ef251
8 changed files with 104 additions and 25 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue