From e3fd0e838d67d2e73176a7650d371b6ab59333e0 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Mon, 25 Mar 2013 09:20:26 +1300 Subject: Add a basic built-in web app. --- libmproxy/cmdline.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'libmproxy/cmdline.py') diff --git a/libmproxy/cmdline.py b/libmproxy/cmdline.py index 1d5902a9..b76792cf 100644 --- a/libmproxy/cmdline.py +++ b/libmproxy/cmdline.py @@ -163,7 +163,7 @@ def get_common_options(options): def common_options(parser): parser.add_argument( - "-a", + "-b", action="store", type = str, dest="addr", default='', help = "Address to bind proxy to (defaults to all interfaces)" ) @@ -261,6 +261,13 @@ def common_options(parser): help="Don't connect to upstream server to look up certificate details." ) + group = parser.add_argument_group("Web App") + group.add_argument( + "-a", + action="store_true", dest="app", default=False, + help="Enable the mitmproxy web app." + ) + group = parser.add_argument_group("Client Replay") group.add_argument( "-c", -- cgit v1.2.3