aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/cmdline.py
diff options
context:
space:
mode:
Diffstat (limited to 'mitmproxy/cmdline.py')
-rw-r--r--mitmproxy/cmdline.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/mitmproxy/cmdline.py b/mitmproxy/cmdline.py
index fe55ad5a..9fb4a561 100644
--- a/mitmproxy/cmdline.py
+++ b/mitmproxy/cmdline.py
@@ -255,6 +255,7 @@ def get_common_options(args):
listen_port = args.port,
mode = mode,
no_upstream_cert = args.no_upstream_cert,
+ spoof_source_address = args.spoof_source_address,
rawtcp = args.rawtcp,
upstream_server = upstream_server,
upstream_auth = args.upstream_auth,
@@ -474,6 +475,11 @@ def proxy_options(parser):
"Disabled by default. "
"Default value will change in a future version."
)
+ group.add_argument(
+ "--spoof-source-address",
+ action="store_true", dest="spoof_source_address",
+ help="Use the client's IP for server-side connections"
+ )
def proxy_ssl_options(parser):