From 078bd532c343d15e534cc0a0769d4354ac7b7279 Mon Sep 17 00:00:00 2001 From: Doug Freed Date: Sat, 12 Nov 2016 00:41:00 -0500 Subject: [PATCH] options: add upstream_bind_address Add upstream_bind_address to the options object --- mitmproxy/options.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mitmproxy/options.py b/mitmproxy/options.py index 497914006..45f183726 100644 --- a/mitmproxy/options.py +++ b/mitmproxy/options.py @@ -69,6 +69,7 @@ class Options(optmanager.OptManager): ignore_hosts: Sequence[str] = (), listen_host: str = "", listen_port: int = LISTEN_PORT, + upstream_bind_address: str = "", mode: str = "regular", no_upstream_cert: bool = False, rawtcp: bool = False, @@ -131,6 +132,7 @@ class Options(optmanager.OptManager): self.ignore_hosts = ignore_hosts self.listen_host = listen_host self.listen_port = listen_port + self.upstream_bind_address = upstream_bind_address self.mode = mode self.no_upstream_cert = no_upstream_cert self.rawtcp = rawtcp