Avoid adding supported crypto multiple times
This commit is contained in:
parent
f60ab3e01f
commit
ce6668ef8c
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ class CryptConnectionManager:
|
||||||
if config.disable_encryption:
|
if config.disable_encryption:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if self.createSslRsaCert():
|
if self.createSslRsaCert() and "tls-rsa" not in self.crypt_supported:
|
||||||
self.crypt_supported.append("tls-rsa")
|
self.crypt_supported.append("tls-rsa")
|
||||||
|
|
||||||
# Try to create RSA server cert + sign for connection encryption
|
# Try to create RSA server cert + sign for connection encryption
|
||||||
|
|
Loading…
Reference in a new issue