Anticache and refresh_server_playback options are applied before flows are loaded.

You can now use mitmdump to preview how these options work, by running mitmdump
against a set of saved flows, and viewing the output.
This commit is contained in:
Aldo Cortesi 2011-05-15 12:23:34 +12:00
parent e285b17e3f
commit 07110bbbf1

View File

@ -53,6 +53,8 @@ class DumpMaster(flow.FlowMaster):
flow.FlowMaster.__init__(self, server, flow.State()) flow.FlowMaster.__init__(self, server, flow.State())
self.outfile = outfile self.outfile = outfile
self.o = options self.o = options
self.anticache = options.anticache
self.refresh_server_playback = options.refresh_server_playback
if filtstr: if filtstr:
self.filt = filt.parse(filtstr) self.filt = filt.parse(filtstr)
@ -100,8 +102,6 @@ class DumpMaster(flow.FlowMaster):
not options.keepserving not options.keepserving
) )
self.anticache = options.anticache
self.refresh_server_playback = options.refresh_server_playback
def _readflow(self, path): def _readflow(self, path):
path = os.path.expanduser(path) path = os.path.expanduser(path)