From 4cfda51c37d314c4706e93ae627189f3792b9623 Mon Sep 17 00:00:00 2001 From: Doug Freed Date: Sat, 12 Nov 2016 00:59:55 -0500 Subject: [PATCH] proxy/protocol/base: use upstream_bind_address Use the upstream_bind_address option, instead of listen_host. --- mitmproxy/proxy/protocol/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mitmproxy/proxy/protocol/base.py b/mitmproxy/proxy/protocol/base.py index 4d67bb71a..783d1cc8d 100644 --- a/mitmproxy/proxy/protocol/base.py +++ b/mitmproxy/proxy/protocol/base.py @@ -114,7 +114,7 @@ class ServerConnectionMixin: server_address, (self.ctx.client_conn.address.host, 0), True) else: self.server_conn = connections.ServerConnection( - server_address, (self.config.options.listen_host, 0)) + server_address, (self.config.options.upstream_bind_address, 0)) self.__check_self_connect()