aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/tools/web
diff options
context:
space:
mode:
Diffstat (limited to 'mitmproxy/tools/web')
-rw-r--r--mitmproxy/tools/web/master.py4
-rw-r--r--mitmproxy/tools/web/webaddons.py6
2 files changed, 5 insertions, 5 deletions
diff --git a/mitmproxy/tools/web/master.py b/mitmproxy/tools/web/master.py
index 17845106..d127bdec 100644
--- a/mitmproxy/tools/web/master.py
+++ b/mitmproxy/tools/web/master.py
@@ -105,8 +105,8 @@ class WebMaster(master.Master):
AsyncIOMainLoop().install()
iol = tornado.ioloop.IOLoop.instance()
http_server = tornado.httpserver.HTTPServer(self.app)
- http_server.listen(self.options.web_port, self.options.web_iface)
- web_url = "http://{}:{}/".format(self.options.web_iface, self.options.web_port)
+ http_server.listen(self.options.web_port, self.options.web_host)
+ web_url = "http://{}:{}/".format(self.options.web_host, self.options.web_port)
self.log.info(
"Web server listening at {}".format(web_url),
)
diff --git a/mitmproxy/tools/web/webaddons.py b/mitmproxy/tools/web/webaddons.py
index ba3bdead..bd85651a 100644
--- a/mitmproxy/tools/web/webaddons.py
+++ b/mitmproxy/tools/web/webaddons.py
@@ -18,13 +18,13 @@ class WebAddon:
"Web UI port."
)
loader.add_option(
- "web_iface", str, "127.0.0.1",
- "Web UI interface."
+ "web_host", str, "127.0.0.1",
+ "Web UI host."
)
def running(self):
if hasattr(ctx.options, "web_open_browser") and ctx.options.web_open_browser:
- web_url = "http://{}:{}/".format(ctx.options.web_iface, ctx.options.web_port)
+ web_url = "http://{}:{}/".format(ctx.options.web_host, ctx.options.web_port)
success = open_browser(web_url)
if not success:
ctx.log.info(