mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Add details on email and report about new hosts detected on network (#8086).
This commit is contained in:
parent
ffd2c05eab
commit
8db0945eba
15 changed files with 184 additions and 42 deletions
|
|
@ -292,13 +292,20 @@ end
|
|||
-- ##################################################################
|
||||
|
||||
-- Function to format result
|
||||
function vs_rest_utils.format_overview_result(result, search_map, sort, port, was_down)
|
||||
function vs_rest_utils.format_overview_result(result, search_map, sort, port, was_down, netscan_report)
|
||||
local rsp = {}
|
||||
if result then
|
||||
|
||||
for _, value in ipairs(result) do
|
||||
if (was_down) then
|
||||
if value.was_down == false then
|
||||
if value.was_down == false or value.was_down == nil then
|
||||
goto continue
|
||||
end
|
||||
end
|
||||
|
||||
if (netscan_report) then
|
||||
|
||||
if value.scan_type ~= 'ipv4_netscan' then
|
||||
goto continue
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue