Add details on email and report about new hosts detected on network (#8086).

This commit is contained in:
Nicolo Maio 2023-12-11 12:23:44 +01:00
parent ffd2c05eab
commit 8db0945eba
15 changed files with 184 additions and 42 deletions

View file

@ -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