mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
Merge branch 'master' of github.com:mitmproxy/mitmproxy
This commit is contained in:
commit
40c28b79d1
@ -130,7 +130,7 @@ The main classes you will deal with in writing mitmproxy scripts are:
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>libmproxy.certutils.SSLCert</th>
|
||||
<th>netlib.certutils.SSLCert</th>
|
||||
<td>Exposes information SSL certificates.</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
@ -508,6 +508,10 @@ class ConsoleMaster(flow.FlowMaster):
|
||||
def client_playback_path(self, path):
|
||||
err, ret = self._readflow(path)
|
||||
if err:
|
||||
if not self.statusbar:
|
||||
print >> sys.stderr, ret
|
||||
sys.exit(1)
|
||||
else:
|
||||
self.statusbar.message(ret)
|
||||
else:
|
||||
self.start_client_playback(ret, False)
|
||||
@ -515,6 +519,10 @@ class ConsoleMaster(flow.FlowMaster):
|
||||
def server_playback_path(self, path):
|
||||
err, ret = self._readflow(path)
|
||||
if err:
|
||||
if not self.statusbar:
|
||||
print >> sys.stderr, ret
|
||||
sys.exit(1)
|
||||
else:
|
||||
self.statusbar.message(ret)
|
||||
else:
|
||||
self.start_server_playback(
|
||||
|
Loading…
Reference in New Issue
Block a user