diff options
author | Andrew Morgan <andrew@amorgan.xyz> | 2019-04-04 15:56:13 +0100 |
---|---|---|
committer | Andrew Morgan <andrew@amorgan.xyz> | 2019-04-04 15:56:13 +0100 |
commit | 3dbad0603f269e1324a5de10fc7f10c67ff46047 (patch) | |
tree | 4cf005acd333bce539f23c01c1733fd731db4a07 | |
parent | Change federation whitelist stuff back (diff) | |
download | synapse-3dbad0603f269e1324a5de10fc7f10c67ff46047.tar.xz |
lint
-rw-r--r-- | synapse/crypto/context_factory.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/synapse/crypto/context_factory.py b/synapse/crypto/context_factory.py index 6fda5e677d..6ebbd3b73c 100644 --- a/synapse/crypto/context_factory.py +++ b/synapse/crypto/context_factory.py @@ -145,7 +145,10 @@ class ClientTLSOptionsFactory(object): should_verify = self._config.federation_verify_certificates # Check if we've disabled certificate verification for this host - if should_verify and host in self._config.federation_certificate_verification_whitelist: + if ( + should_verify and + host in self._config.federation_certificate_verification_whitelist + ): should_verify = False if should_verify: |