mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-27 02:24:18 +00:00
fix #1675
This commit is contained in:
parent
48f51849b9
commit
62c9c3db4f
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user