mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Handle extractions from the smart timeline when enabled according to the time interval
This commit is contained in:
parent
47aad89868
commit
ba60af3df2
10 changed files with 155 additions and 73 deletions
|
|
@ -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..'"')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue