mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-03 19:27:14 +00:00
mitmweb: start onboarding app if instructed to
This commit is contained in:
parent
d08fc33f35
commit
901bf018c0
1 changed files with 4 additions and 1 deletions
|
|
@ -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)
|
||||
self.state.add_event(e, level)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue