From c3cb77adce5c2cdeaaa62cc002281404c5faa729 Mon Sep 17 00:00:00 2001 From: Matthew Shao Date: Wed, 26 Jul 2017 15:13:56 +0800 Subject: [PATCH] [web] Load dumped options at start up. --- mitmproxy/tools/web/master.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mitmproxy/tools/web/master.py b/mitmproxy/tools/web/master.py index 8c2433ec6..c2e7c4b11 100644 --- a/mitmproxy/tools/web/master.py +++ b/mitmproxy/tools/web/master.py @@ -125,6 +125,12 @@ class WebMaster(master.Master): "No web browser found. Please open a browser and point it to {}".format(web_url), "info" ) + unknown_opts = optmanager.load_paths(app.CONFIG_PATH) + if unknown_opts == {}: + self.add_log( + "Load options configuration from {}.".format(app.CONFIG_PATH), + "info" + ) try: iol.start()