Use the new blacklisted client for identity.
parent
9e8b37f1ce
commit
2c4d34b370
|
@ -46,12 +46,10 @@ class IdentityHandler(BaseHandler):
|
||||||
def __init__(self, hs):
|
def __init__(self, hs):
|
||||||
super().__init__(hs)
|
super().__init__(hs)
|
||||||
|
|
||||||
|
# An HTTP client to contact trusted URLs.
|
||||||
self.http_client = SimpleHttpClient(hs)
|
self.http_client = SimpleHttpClient(hs)
|
||||||
# We create a blacklisting instance of SimpleHttpClient for contacting identity
|
# An HTTP client for contacting identity servers specified by clients.
|
||||||
# servers specified by clients
|
self.blacklisting_http_client = hs.get_proxied_blacklisted_http_client()
|
||||||
self.blacklisting_http_client = SimpleHttpClient(
|
|
||||||
hs, ip_blacklist=hs.config.federation_ip_range_blacklist
|
|
||||||
)
|
|
||||||
self.federation_http_client = hs.get_http_client()
|
self.federation_http_client = hs.get_http_client()
|
||||||
self.hs = hs
|
self.hs = hs
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue