Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Consider IP whitelist for identity server resolution
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Edström <github@legogris.se>
  • Loading branch information
Legogris committed Oct 19, 2021
1 parent f3efa00 commit c2ba9e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/11120.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Identity server connection is no longer ignoring `ip_range_whitelist`.
4 changes: 3 additions & 1 deletion synapse/handlers/identity.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ def __init__(self, hs: "HomeServer"):
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
Expand Down

0 comments on commit c2ba9e6

Please sign in to comment.