This commit is contained in:
Andrew Morgan 2019-04-04 15:56:13 +01:00
parent 396eb64d92
commit 3dbad0603f

View file

@ -145,7 +145,10 @@ class ClientTLSOptionsFactory(object):
should_verify = self._config.federation_verify_certificates should_verify = self._config.federation_verify_certificates
# Check if we've disabled certificate verification for this host # 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 should_verify = False
if should_verify: if should_verify: