mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 10:16:27 +00:00
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:
parent
e285b17e3f
commit
07110bbbf1
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user