Tweak upstream SNI.

This commit is contained in:
Aldo Cortesi 2012-07-01 11:53:46 +12:00
parent 9985cf5473
commit 4e9d4e8ddd

View File

@ -88,7 +88,7 @@ class ServerConnection(tcp.TCPClient):
path = os.path.join(self.config.clientcerts, self.host) + ".pem" path = os.path.join(self.config.clientcerts, self.host) + ".pem"
if os.path.exists(clientcert): if os.path.exists(clientcert):
clientcert = path clientcert = path
self.convert_to_ssl(clientcert=clientcert) self.convert_to_ssl(clientcert=clientcert, sni=self.host)
def send(self, request): def send(self, request):
self.requestcount += 1 self.requestcount += 1