diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2015-06-23 14:01:50 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2015-06-23 14:01:50 +1200 |
commit | 2c928181e841b25d5ae8d1390802900b4cc6834e (patch) | |
tree | 5bde55e614557f39821e269061e14516b39f3a54 /libmproxy/cmdline.py | |
parent | 237e05c823958dc9ea50c648cc98bedc2ef305d3 (diff) | |
parent | e2069d52a81a2aef99dcd2da4fbc61e926b024a0 (diff) | |
download | mitmproxy-2c928181e841b25d5ae8d1390802900b4cc6834e.tar.gz mitmproxy-2c928181e841b25d5ae8d1390802900b4cc6834e.tar.bz2 mitmproxy-2c928181e841b25d5ae8d1390802900b4cc6834e.zip |
Merge branch 'master' of ssh.github.com:mitmproxy/mitmproxy
Diffstat (limited to 'libmproxy/cmdline.py')
-rw-r--r-- | libmproxy/cmdline.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libmproxy/cmdline.py b/libmproxy/cmdline.py index eb24bed7..08639f6d 100644 --- a/libmproxy/cmdline.py +++ b/libmproxy/cmdline.py @@ -370,6 +370,21 @@ def common_options(parser): default=None, help="Forward all requests to upstream proxy server: http://host[:port]" ) + group.add_argument( + "--spoof", + action="store_true", dest="spoof_mode", default=False, + help="Use Host header to connect to HTTP servers." + ) + group.add_argument( + "--ssl-spoof", + action="store_true", dest="ssl_spoof_mode", default=False, + help="Use TLS SNI to connect to HTTPS servers." + ) + group.add_argument( + "--spoofed-port", + action="store", dest="spoofed_ssl_port", type=int, default=443, + help="Port number of upstream HTTPS servers in SSL spoof mode." + ) group = parser.add_argument_group( "Advanced Proxy Options", |