mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 18:18:25 +00:00
Fix mitmproxy file reading.
This commit is contained in:
parent
31a092f6b4
commit
47b5fd666d
@ -550,7 +550,7 @@ class ConsoleMaster(flow.FlowMaster):
|
||||
ret = self.load_flows(self.options.rfile)
|
||||
if ret and self.state.flow_count():
|
||||
self.add_event("File truncated or corrupted. Loaded as many flows as possible.")
|
||||
else:
|
||||
elif not self.state.flow_count():
|
||||
self.shutdown()
|
||||
print >> sys.stderr, "Could not load file:", ret
|
||||
sys.exit(1)
|
||||
|
Loading…
Reference in New Issue
Block a user