mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-21 20:24:32 +03:00
Remove TODO
This commit is contained in:
parent
a7d7c5a060
commit
fec0c9a074
2 changed files with 2 additions and 1 deletions
|
@ -146,6 +146,7 @@ class ClientTLSOptionsFactory(object):
|
||||||
|
|
||||||
# Check if certificate verification has been enabled
|
# Check if certificate verification has been enabled
|
||||||
if (self._config.federation_verify_certificates and
|
if (self._config.federation_verify_certificates and
|
||||||
|
self._config.federation_certificate_validation_whitelist and
|
||||||
host not in self._config.federation_certificate_validation_whitelist):
|
host not in self._config.federation_certificate_validation_whitelist):
|
||||||
# Require verification
|
# Require verification
|
||||||
return ClientTLSOptions(host, self._options_validate._makeContext())
|
return ClientTLSOptions(host, self._options_validate._makeContext())
|
||||||
|
|
|
@ -53,7 +53,7 @@ class MatrixFederationAgentTests(TestCase):
|
||||||
|
|
||||||
self.agent = MatrixFederationAgent(
|
self.agent = MatrixFederationAgent(
|
||||||
reactor=self.reactor,
|
reactor=self.reactor,
|
||||||
tls_client_options_factory=ClientTLSOptionsFactory(#TODO How to deal with None config in tests???),
|
tls_client_options_factory=ClientTLSOptionsFactory(None),
|
||||||
_well_known_tls_policy=TrustingTLSPolicyForHTTPS(),
|
_well_known_tls_policy=TrustingTLSPolicyForHTTPS(),
|
||||||
_srv_resolver=self.mock_resolver,
|
_srv_resolver=self.mock_resolver,
|
||||||
_well_known_cache=self.well_known_cache,
|
_well_known_cache=self.well_known_cache,
|
||||||
|
|
Loading…
Reference in a new issue