Consider IP whitelist for identity server resolution (#11120)

Signed-off-by: Robert Edström <github@legogris.se>
code_spécifique_watcha
Robert Edström 3 years ago committed by GitHub
parent 0930e9ae12
commit 62db603fa0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      changelog.d/11120.bugfix
  2. 4
      synapse/handlers/identity.py

@ -0,0 +1 @@
Identity server connection is no longer ignoring `ip_range_whitelist`.

@ -54,7 +54,9 @@ class IdentityHandler:
self.http_client = SimpleHttpClient(hs)
# An HTTP client for contacting identity servers specified by clients.
self.blacklisting_http_client = SimpleHttpClient(
hs, ip_blacklist=hs.config.server.federation_ip_range_blacklist
hs,
ip_blacklist=hs.config.server.federation_ip_range_blacklist,
ip_whitelist=hs.config.server.federation_ip_range_whitelist,
)
self.federation_http_client = hs.get_federation_http_client()
self.hs = hs

Loading…
Cancel
Save