summary refs log tree commit diff
path: root/synapse/server.py
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/server.py')
-rw-r--r--synapse/server.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/synapse/server.py b/synapse/server.py

index 2574f6786e..bd8ee0e34a 100644 --- a/synapse/server.py +++ b/synapse/server.py
@@ -365,26 +365,6 @@ class HomeServer(metaclass=abc.ABCMeta): def get_proxied_blacklisted_http_client(self) -> SimpleHttpClient: """ An HTTP client that uses configured HTTP(S) proxies and blacklists IPs - based on the IP range blacklist. - """ - return SimpleHttpClient( - self, ip_blacklist=self.config.ip_range_blacklist, use_proxy=True, - ) - - @cache_in_self - def get_federation_http_client(self) -> MatrixFederationHttpClient: - """ - An HTTP client for federation. - """ - tls_client_options_factory = context_factory.FederationPolicyForHTTPS( - self.config - ) - return MatrixFederationHttpClient(self, tls_client_options_factory) - - @cache_in_self - def get_proxied_blacklisted_http_client(self) -> SimpleHttpClient: - """ - An HTTP client that uses configured HTTP(S) proxies and blacklists IPs based on the IP range blacklist/whitelist. """ return SimpleHttpClient(