From ce6668ef8c991a86aff6355c4f2747a686d0742c Mon Sep 17 00:00:00 2001 From: shortcutme Date: Sun, 20 Jan 2019 03:27:44 +0100 Subject: [PATCH] Avoid adding supported crypto multiple times --- src/Crypt/CryptConnection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Crypt/CryptConnection.py b/src/Crypt/CryptConnection.py index b30c7e49..15009ff4 100644 --- a/src/Crypt/CryptConnection.py +++ b/src/Crypt/CryptConnection.py @@ -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