From 2c4d34b37057ba07c9a1ef2d4d9d3b6f0a5d7b4e Mon Sep 17 00:00:00 2001 From: Patrick Cloke Date: Fri, 20 Nov 2020 14:00:49 -0500 Subject: [PATCH] Use the new blacklisted client for identity. --- synapse/handlers/identity.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/synapse/handlers/identity.py b/synapse/handlers/identity.py index bc3e9607ca..459b3ba5b9 100644 --- a/synapse/handlers/identity.py +++ b/synapse/handlers/identity.py @@ -46,12 +46,10 @@ class IdentityHandler(BaseHandler): def __init__(self, hs): super().__init__(hs) + # An HTTP client to contact trusted URLs. self.http_client = SimpleHttpClient(hs) - # We create a blacklisting instance of SimpleHttpClient for contacting identity - # servers specified by clients - self.blacklisting_http_client = SimpleHttpClient( - hs, ip_blacklist=hs.config.federation_ip_range_blacklist - ) + # An HTTP client for contacting identity servers specified by clients. + self.blacklisting_http_client = hs.get_proxied_blacklisted_http_client() self.federation_http_client = hs.get_http_client() self.hs = hs