From cf570200383fc4549a81e712a3b2b67870486d16 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Sat, 20 Feb 2016 22:08:49 +0100 Subject: [PATCH] fix proxy reconnect --- mitmproxy/protocol/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mitmproxy/protocol/base.py b/mitmproxy/protocol/base.py index a14066cd1..41d47281f 100644 --- a/mitmproxy/protocol/base.py +++ b/mitmproxy/protocol/base.py @@ -163,7 +163,7 @@ class ServerConnectionMixin(object): self.server_conn.finish() self.server_conn.close() self.channel.tell("serverdisconnect", self.server_conn) - self.server_conn = ServerConnection(address, source_address) + self.server_conn = ServerConnection(address, (source_address.host, 0)) def connect(self): """