aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/cmdline.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2012-02-28 10:55:37 +1300
committerAldo Cortesi <aldo@nullcube.com>2012-02-28 10:55:37 +1300
commita03e1af7e73af285447c7ecc28f7202a725537e4 (patch)
tree61ca8f29220843105ee25d42355cb21f7d78d6e9 /libmproxy/cmdline.py
parent883424030f2ad7955209ff7b1a55b84e5aa4321c (diff)
parent688faa9baa79750642ffbf4241bb166f594e4179 (diff)
downloadmitmproxy-a03e1af7e73af285447c7ecc28f7202a725537e4.tar.gz
mitmproxy-a03e1af7e73af285447c7ecc28f7202a725537e4.tar.bz2
mitmproxy-a03e1af7e73af285447c7ecc28f7202a725537e4.zip
Merge branch 'upstream-cert'
Diffstat (limited to 'libmproxy/cmdline.py')
-rw-r--r--libmproxy/cmdline.py17
1 files changed, 11 insertions, 6 deletions
diff --git a/libmproxy/cmdline.py b/libmproxy/cmdline.py
index ee4f3b08..42c02449 100644
--- a/libmproxy/cmdline.py
+++ b/libmproxy/cmdline.py
@@ -141,6 +141,17 @@ def common_options(parser):
help="Byte size limit of HTTP request and response bodies."\
" Understands k/m/g suffixes, i.e. 3m for 3 megabytes."
)
+ parser.add_option(
+ "--cert-wait-time", type="float",
+ action="store", dest="cert_wait_time", default=0,
+ help="Wait for specified number of seconds after a new cert is generated. This can smooth over small discrepancies between the client and server times."
+ )
+ parser.add_option(
+ "--upstream-cn-lookup", default=False,
+ action="store_true", dest="upstream_cn_lookup",
+ help="Connect to upstream server to look up certificate Common Name."
+ )
+
group = optparse.OptionGroup(parser, "Client Replay")
group.add_option(
"-c",
@@ -149,12 +160,6 @@ def common_options(parser):
)
parser.add_option_group(group)
- parser.add_option(
- "--cert-wait-time", type="float",
- action="store", dest="cert_wait_time", default=0,
- help="Wait for specified number of seconds after a new cert is generated. This can smooth over small discrepancies between the client and server times."
- )
-
group = optparse.OptionGroup(parser, "Server Replay")
group.add_option(
"-S",