mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Fix various bugs and add ports in the host scan modal. (#7698)
This commit is contained in:
parent
a7c49205ef
commit
a93201e42f
20 changed files with 540 additions and 109 deletions
|
|
@ -12,12 +12,13 @@ local vs_utils = require "vs_utils"
|
|||
|
||||
local host = _GET["host"]
|
||||
local scan_type = _GET["scan_type"]
|
||||
local scan_ports = _GET["scan_ports"]
|
||||
|
||||
if isEmptyString(host) or isEmptyString(scan_type) then
|
||||
rest_utils.answer(rest_utils.consts.err.bad_content)
|
||||
end
|
||||
|
||||
local result = vs_utils.save_host_to_scan(scan_type, host) -- FIXME: add ports
|
||||
local result = vs_utils.save_host_to_scan(scan_type, host, nil, nil, nil, 5, scan_ports)
|
||||
|
||||
if result == 1 then
|
||||
rest_utils.answer(rest_utils.consts.success.ok)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue