mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-22 12:44:30 +03:00
lint
This commit is contained in:
parent
396eb64d92
commit
3dbad0603f
1 changed files with 4 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue