From 22927d6ee8b1133928772924b69333ef2a1347af Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Fri, 16 Apr 2021 15:06:06 +0100 Subject: lint --- synapse/server.py | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'synapse/server.py') diff --git a/synapse/server.py b/synapse/server.py index 2574f6786e..bd8ee0e34a 100644 --- a/synapse/server.py +++ b/synapse/server.py @@ -361,26 +361,6 @@ class HomeServer(metaclass=abc.ABCMeta): """ return SimpleHttpClient(self, use_proxy=True) - @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. - """ - 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: """ -- cgit 1.5.1