aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/web/__init__.py
diff options
context:
space:
mode:
authorSandor Nemes <snemes@users.noreply.github.com>2016-01-13 15:05:57 +0100
committerSandor Nemes <snemes@users.noreply.github.com>2016-01-13 15:05:57 +0100
commit2753af0ec72e542d5a4dc3e5e200bd1638b2b095 (patch)
tree8968dca61eac1d68288e85d5be1b0c680f015d6c /libmproxy/web/__init__.py
parentfe77dd35c67a0dfbd3004fefe97c689f8cfd3291 (diff)
parentaea3837d4ae637af42f716acb27d7ea8394ece35 (diff)
downloadmitmproxy-2753af0ec72e542d5a4dc3e5e200bd1638b2b095.tar.gz
mitmproxy-2753af0ec72e542d5a4dc3e5e200bd1638b2b095.tar.bz2
mitmproxy-2753af0ec72e542d5a4dc3e5e200bd1638b2b095.zip
Merge branch 'master' into master
Diffstat (limited to 'libmproxy/web/__init__.py')
-rw-r--r--libmproxy/web/__init__.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/libmproxy/web/__init__.py b/libmproxy/web/__init__.py
index a0af7315..90da6ffe 100644
--- a/libmproxy/web/__init__.py
+++ b/libmproxy/web/__init__.py
@@ -134,6 +134,16 @@ class WebMaster(flow.FlowMaster):
"Could not read flow file: %s" % v,
"error"
)
+
+ if options.outfile:
+ err = self.start_stream_to_path(
+ options.outfile[0],
+ options.outfile[1]
+ )
+ if err:
+ print >> sys.stderr, "Stream file error:", err
+ sys.exit(1)
+
if self.options.app:
self.start_app(self.options.app_host, self.options.app_port)