diff options
author | Andrew Morgan <andrew@amorgan.xyz> | 2019-04-10 12:44:15 +0100 |
---|---|---|
committer | Andrew Morgan <andrew@amorgan.xyz> | 2019-04-10 12:44:15 +0100 |
commit | 0e2f8ca01973a079d4e1df8bb788fa90c4b58259 (patch) | |
tree | 868406276976747c5ef39f74de1a9e080dc18003 | |
parent | lint (diff) | |
download | synapse-0e2f8ca01973a079d4e1df8bb788fa90c4b58259.tar.xz |
Add some notes
-rw-r--r-- | synapse/http/client.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/http/client.py b/synapse/http/client.py index 12287fb4ec..9f6bdeb013 100644 --- a/synapse/http/client.py +++ b/synapse/http/client.py @@ -111,6 +111,8 @@ class IPBlacklistingResolver(object): logger.info( "Dropped %s from DNS resolution to %s" % (ip_address, hostname) ) + # Only raise a 403 if this request originated from a + # client-server call if not self._from_federation: raise SynapseError(403, "IP address blocked by IP blacklist entry") |