mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-27 02:24:18 +00:00
mitmweb: start onboarding app if instructed to
This commit is contained in:
parent
d08fc33f35
commit
901bf018c0
@ -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…
Reference in New Issue
Block a user