diff options
author | Matthew Shao <me@matshao.com> | 2017-07-26 15:13:56 +0800 |
---|---|---|
committer | Matthew Shao <me@matshao.com> | 2017-07-26 15:13:56 +0800 |
commit | c3cb77adce5c2cdeaaa62cc002281404c5faa729 (patch) | |
tree | 715546cb79933210cb881511195a5aefcc77f246 | |
parent | c7e41b32abba017210ef5c2dc3961554a9b6b9b3 (diff) | |
download | mitmproxy-c3cb77adce5c2cdeaaa62cc002281404c5faa729.tar.gz mitmproxy-c3cb77adce5c2cdeaaa62cc002281404c5faa729.tar.bz2 mitmproxy-c3cb77adce5c2cdeaaa62cc002281404c5faa729.zip |
[web] Load dumped options at start up.
-rw-r--r-- | mitmproxy/tools/web/master.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mitmproxy/tools/web/master.py b/mitmproxy/tools/web/master.py index 8c2433ec..c2e7c4b1 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() |