summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2019-04-01 18:20:32 +0100
committerAndrew Morgan <andrew@amorgan.xyz>2019-04-01 18:20:32 +0100
commit4f177c5002007be0072f4f70439cc2f9b5cf1b6e (patch)
tree9a31caaaf9aaf801e16ddfe8814ab475eca3a153
parentCache config (diff)
downloadsynapse-4f177c5002007be0072f4f70439cc2f9b5cf1b6e.tar.xz
again
-rw-r--r--synapse/crypto/context_factory.py2
1 files changed, 1 insertions, 1 deletions
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())