From 4f177c5002007be0072f4f70439cc2f9b5cf1b6e Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Mon, 1 Apr 2019 18:20:32 +0100 Subject: again --- synapse/crypto/context_factory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synapse/crypto/context_factory.py b/synapse/crypto/context_factory.py index 41f23a3e1a..fbe2bd454d 100644 --- a/synapse/crypto/context_factory.py +++ b/synapse/crypto/context_factory.py @@ -138,7 +138,7 @@ class ClientTLSOptionsFactory(object): # Use _makeContext so that we get a fresh OpenSSL CTX each time. # Check if certificate verification has been enabled - if (config.federation_verify_certificates and + if (self._config.federation_verify_certificates and host not in self._config.federation_certificate_validation_whitelist): # Require verification return ClientTLSOptions(host, self._options_validate._makeContext()) -- cgit 1.4.1