From da3e7c0187e7baaf94359ae428461787df52c19f Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Tue, 12 Aug 2014 02:55:32 +0200 Subject: [PATCH] do not connect if inline script already connected to upstream server --- libmproxy/proxy/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmproxy/proxy/server.py b/libmproxy/proxy/server.py index d4a97e6a9..02b86d71d 100644 --- a/libmproxy/proxy/server.py +++ b/libmproxy/proxy/server.py @@ -85,7 +85,7 @@ class ConnectionHandler: self.determine_conntype() self.channel.ask("clientconnect", self) - if self.server_conn: + if self.server_conn and not self.server_conn.connection: self.establish_server_connection() if client_ssl or server_ssl: self.establish_ssl(client=client_ssl, server=server_ssl)