diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2013-03-25 09:20:26 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2013-03-25 09:20:26 +1300 |
commit | e3fd0e838d67d2e73176a7650d371b6ab59333e0 (patch) | |
tree | 8cd51143da16b6fad3e34dfc8e23a43582e38cbd /libmproxy/cmdline.py | |
parent | 98e4421a90854ef3462377909904c8397f107c43 (diff) | |
download | mitmproxy-e3fd0e838d67d2e73176a7650d371b6ab59333e0.tar.gz mitmproxy-e3fd0e838d67d2e73176a7650d371b6ab59333e0.tar.bz2 mitmproxy-e3fd0e838d67d2e73176a7650d371b6ab59333e0.zip |
Add a basic built-in web app.
Diffstat (limited to 'libmproxy/cmdline.py')
-rw-r--r-- | libmproxy/cmdline.py | 9 |
1 files changed, 8 insertions, 1 deletions
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", |