Reworked blacklists page

This commit is contained in:
Matteo Biscosi 2024-04-11 12:48:48 -04:00
parent cd425b384d
commit 0fecdee1e4
19 changed files with 829 additions and 21 deletions

View file

@ -88,6 +88,13 @@ local rsp = {}
local flows_stats = interface.getFlowsInfo(flows_filter["hostFilter"], flows_filter, flows_filter["talkingWith"],
flows_filter["client"], flows_filter["server"], flows_filter["flow_info"])
if not flows_stats then
rest_utils.extended_answer(rest_utils.consts.success.ok, {}, {
["recordsTotal"] = 0
})
return
end
for _, value in ipairs(flows_stats.flows) do
local record = {}
local key = value["ntopng.key"]