Fix implicit ssl connection typo

This commit is contained in:
shortcutme 2018-04-03 14:43:41 +02:00
parent b39da7e356
commit 270922b460
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -127,7 +127,7 @@ class Connection(object):
self.sock.do_handshake()
self.crypt = "tls-rsa"
self.sock_wrapped = True
elif should_encrypt and "tsl-rsa" in CryptConnection.manager.crypt_supported:
elif should_encrypt and "tls-rsa" in CryptConnection.manager.crypt_supported:
try:
self.sock = CryptConnection.manager.wrapSocket(self.sock, "tls-rsa")
self.sock.do_handshake()