diff --git a/libmproxy/proxy/server.py b/libmproxy/proxy/server.py index 896dd024f..a72f9aba2 100644 --- a/libmproxy/proxy/server.py +++ b/libmproxy/proxy/server.py @@ -295,7 +295,7 @@ class ConnectionHandler: self.server_reconnect(sni) # reconnect to upstream server with SNI # Now, change client context to reflect changed certificate: cert, key, chain_file = self.find_cert() - new_context = self.client_conn._create_ssl_context( + new_context = self.client_conn.create_ssl_context( cert, key, method=self.config.openssl_method_client, options=self.config.openssl_options_client,