forked from MirrorHub/synapse
Consider IP whitelist for identity server resolution (#11120)
Signed-off-by: Robert Edström <github@legogris.se>
This commit is contained in:
parent
0930e9ae12
commit
62db603fa0
1
changelog.d/11120.bugfix
Normal file
1
changelog.d/11120.bugfix
Normal file
|
@ -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…
Reference in a new issue