Avoid adding supported crypto multiple times

This commit is contained in:
shortcutme 2019-01-20 03:27:44 +01:00
parent f60ab3e01f
commit ce6668ef8c
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -60,7 +60,7 @@ class CryptConnectionManager:
if config.disable_encryption:
return False
if self.createSslRsaCert():
if self.createSslRsaCert() and "tls-rsa" not in self.crypt_supported:
self.crypt_supported.append("tls-rsa")
# Try to create RSA server cert + sign for connection encryption