mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 10:16:27 +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>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>libmproxy.certutils.SSLCert</th>
|
<th>netlib.certutils.SSLCert</th>
|
||||||
<td>Exposes information SSL certificates.</td>
|
<td>Exposes information SSL certificates.</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
@ -174,4 +174,4 @@ matching events will be skipped.
|
|||||||
## Spaces in the script path
|
## Spaces in the script path
|
||||||
By default, spaces are interpreted as separator between the inline script and its arguments (e.g. <code>-s "foo.py
|
By default, spaces are interpreted as separator between the inline script and its arguments (e.g. <code>-s "foo.py
|
||||||
42"</code>). Consequently, the script path needs to be wrapped in a separate pair of quotes if it contains spaces:
|
42"</code>). Consequently, the script path needs to be wrapped in a separate pair of quotes if it contains spaces:
|
||||||
<code>-s "'./foo bar/baz.py' 42"</code>.
|
<code>-s "'./foo bar/baz.py' 42"</code>.
|
||||||
|
@ -508,14 +508,22 @@ class ConsoleMaster(flow.FlowMaster):
|
|||||||
def client_playback_path(self, path):
|
def client_playback_path(self, path):
|
||||||
err, ret = self._readflow(path)
|
err, ret = self._readflow(path)
|
||||||
if err:
|
if err:
|
||||||
self.statusbar.message(ret)
|
if not self.statusbar:
|
||||||
|
print >> sys.stderr, ret
|
||||||
|
sys.exit(1)
|
||||||
|
else:
|
||||||
|
self.statusbar.message(ret)
|
||||||
else:
|
else:
|
||||||
self.start_client_playback(ret, False)
|
self.start_client_playback(ret, False)
|
||||||
|
|
||||||
def server_playback_path(self, path):
|
def server_playback_path(self, path):
|
||||||
err, ret = self._readflow(path)
|
err, ret = self._readflow(path)
|
||||||
if err:
|
if err:
|
||||||
self.statusbar.message(ret)
|
if not self.statusbar:
|
||||||
|
print >> sys.stderr, ret
|
||||||
|
sys.exit(1)
|
||||||
|
else:
|
||||||
|
self.statusbar.message(ret)
|
||||||
else:
|
else:
|
||||||
self.start_server_playback(
|
self.start_server_playback(
|
||||||
ret,
|
ret,
|
||||||
|
Loading…
Reference in New Issue
Block a user