aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/cmdline.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@corte.si>2012-02-16 22:57:58 -0800
committerAldo Cortesi <aldo@corte.si>2012-02-16 22:57:58 -0800
commitfcc874fa183971c1985578dca66e4b4e49e17f43 (patch)
tree9d9d0fc261ba8986da7ceab3f0a1512afaa380e1 /libmproxy/cmdline.py
parentf25156a6377b89ea34899fb61a94694361a7e511 (diff)
parenta3509b7f229eafdcbdd545e49de8ad2ac728e034 (diff)
downloadmitmproxy-fcc874fa183971c1985578dca66e4b4e49e17f43.tar.gz
mitmproxy-fcc874fa183971c1985578dca66e4b4e49e17f43.tar.bz2
mitmproxy-fcc874fa183971c1985578dca66e4b4e49e17f43.zip
Merge pull request #29 from hessu/master
Reverse proxy mode for mitmproxy
Diffstat (limited to 'libmproxy/cmdline.py')
-rw-r--r--libmproxy/cmdline.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/libmproxy/cmdline.py b/libmproxy/cmdline.py
index 6d1ffa3d..e7ca1bcf 100644
--- a/libmproxy/cmdline.py
+++ b/libmproxy/cmdline.py
@@ -65,6 +65,11 @@ def common_options(parser):
help = "Proxy service port."
)
parser.add_option(
+ "-R",
+ action="store", dest="reverse_upstream", default=None,
+ help="Reverse proxy: upstream server host:port"
+ )
+ parser.add_option(
"-q",
action="store_true", dest="quiet",
help="Quiet."