This commit is contained in:
Maximilian Hils 2016-10-27 16:12:18 -07:00
parent 48f51849b9
commit 62c9c3db4f

View File

@ -104,7 +104,11 @@ class ClientConnection(tcp.BaseHandler, stateobject.StateObject):
def convert_to_ssl(self, *args, **kwargs):
super().convert_to_ssl(*args, **kwargs)
self.timestamp_ssl_setup = time.time()
self.sni = self.connection.get_servername()
sni = self.connection.get_servername()
if sni:
self.sni = sni.decode("idna")
else:
self.sni = None
self.cipher_name = self.connection.get_cipher_name()
self.tls_version = self.connection.get_protocol_version_name()