aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/console
diff options
context:
space:
mode:
authorMarcelo Glezer <mg@tekii.com.ar>2015-03-25 17:07:31 -0300
committerMarcelo Glezer <mg@tekii.com.ar>2015-03-25 17:07:31 -0300
commitc5f153f8d0e50e12b9c9cd6ab0988a1294bcd4be (patch)
tree8d11142e1fd0f8a3544b318b1ffca34c1f7cb22c /libmproxy/console
parente6a8863c51f2e2f5809ae0a42fc874afc3c7f908 (diff)
downloadmitmproxy-c5f153f8d0e50e12b9c9cd6ab0988a1294bcd4be.tar.gz
mitmproxy-c5f153f8d0e50e12b9c9cd6ab0988a1294bcd4be.tar.bz2
mitmproxy-c5f153f8d0e50e12b9c9cd6ab0988a1294bcd4be.zip
fix #535 now works with both cases: using -c from command line and pressing c in the ui
Diffstat (limited to 'libmproxy/console')
-rw-r--r--libmproxy/console/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/libmproxy/console/__init__.py b/libmproxy/console/__init__.py
index de549ee6..75d1e1ac 100644
--- a/libmproxy/console/__init__.py
+++ b/libmproxy/console/__init__.py
@@ -298,6 +298,8 @@ class ConsoleMaster(flow.FlowMaster):
signals.status_message.send(message=e.strerror)
def client_playback_path(self, path):
+ if not isinstance(path, list):
+ path = [path]
flows = self._readflows(path)
if flows:
self.start_client_playback(flows, False)
20'>120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201