diff options
author | peralta <luis.peralta@gmail.com> | 2015-03-26 17:20:32 +0100 |
---|---|---|
committer | peralta <luis.peralta@gmail.com> | 2015-03-26 17:20:32 +0100 |
commit | 901bf018c06bb75ae35106b60a7553bfed25195a (patch) | |
tree | ade0be6b63ba394a7976f18331cf30271bbc9f22 /libmproxy | |
parent | d08fc33f35777bf9e6e5bd8bccd30f8f6ee903e6 (diff) | |
download | mitmproxy-901bf018c06bb75ae35106b60a7553bfed25195a.tar.gz mitmproxy-901bf018c06bb75ae35106b60a7553bfed25195a.tar.bz2 mitmproxy-901bf018c06bb75ae35106b60a7553bfed25195a.zip |
mitmweb: start onboarding app if instructed to
Diffstat (limited to 'libmproxy')
-rw-r--r-- | libmproxy/web/__init__.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libmproxy/web/__init__.py b/libmproxy/web/__init__.py index 173ddf9f..7016eeb8 100644 --- a/libmproxy/web/__init__.py +++ b/libmproxy/web/__init__.py @@ -133,6 +133,9 @@ class WebMaster(flow.FlowMaster): "Could not read flow file: %s"%v, "error" ) + if self.options.app: + self.start_app(self.options.app_host, self.options.app_port) + def tick(self): flow.FlowMaster.tick(self, self.masterq, timeout=0) @@ -173,4 +176,4 @@ class WebMaster(flow.FlowMaster): def add_event(self, e, level="info"): super(WebMaster, self).add_event(e, level) - self.state.add_event(e, level)
\ No newline at end of file + self.state.add_event(e, level) |