diff options
author | JC <pubunilima *at* gmail.com> | 2013-08-30 17:14:18 -0700 |
---|---|---|
committer | JC <pubunilima *at* gmail.com> | 2013-08-30 17:19:58 -0700 |
commit | 65d1ed1b3c54985b4b4b0bec919de0ad7a86e342 (patch) | |
tree | 88b55abceb2287bebbfbbea225477646b3e3fe7e /libmproxy/cmdline.py | |
parent | 8d954d9965b35eec2e54996c0d6ef5bcc0d40cd6 (diff) | |
download | mitmproxy-65d1ed1b3c54985b4b4b0bec919de0ad7a86e342.tar.gz mitmproxy-65d1ed1b3c54985b4b4b0bec919de0ad7a86e342.tar.bz2 mitmproxy-65d1ed1b3c54985b4b4b0bec919de0ad7a86e342.zip |
Added -F http[s]://server:port option that allows MITM to forward traffic to another http server upstream.
Diffstat (limited to 'libmproxy/cmdline.py')
-rw-r--r-- | libmproxy/cmdline.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libmproxy/cmdline.py b/libmproxy/cmdline.py index a394d7f3..5e120ce1 100644 --- a/libmproxy/cmdline.py +++ b/libmproxy/cmdline.py @@ -190,6 +190,11 @@ def common_options(parser): help="Reverse proxy to upstream server: http[s]://host[:port]" ) parser.add_argument( + "-F", + action="store", dest="forward_proxy", default=None, + help="Proxy to unconditionally forward to: http[s]://host[:port]" + ) + parser.add_argument( "-q", action="store_true", dest="quiet", help="Quiet." |