Fix server connections encryption

This commit is contained in:
shortcutme 2019-08-15 03:19:05 +02:00
parent 429043f60c
commit 6a245a202c
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -78,7 +78,7 @@ class CryptConnectionManager:
def wrapSocket(self, sock, crypt, server=False, cert_pin=None):
if crypt == "tls-rsa":
if server:
sock_wrapped = self.context_server.wrap_socket(sock)
sock_wrapped = self.context_server.wrap_socket(sock, server_side=True)
else:
sock_wrapped = self.context_client.wrap_socket(sock, server_hostname=random.choice(self.fakedomains))
if cert_pin: