Handle extractions from the smart timeline when enabled according to the time interval

This commit is contained in:
Alfredo Cardigliano 2023-04-14 18:42:14 +02:00
parent 47aad89868
commit ba60af3df2
10 changed files with 155 additions and 73 deletions

View file

@ -49,10 +49,7 @@ if filter == nil then
filter = ""
end
local timeline_path
if recording_utils.getCurrentTrafficRecordingProvider(ifid) ~= "ntopng" then
timeline_path = recording_utils.getCurrentTrafficRecordingProviderTimelinePath(ifid)
end
local timeline_path = recording_utils.getTimelineByInterval(ifid, time_from, time_to)
local fname = time_from.."-"..time_to..".pcap"
sendHTTPContentTypeHeader('application/vnd.tcpdump.pcap', 'attachment; filename="'..fname..'"')