diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2021-01-12 12:48:12 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-12 12:48:12 +0000 |
commit | 0f8945e166b5f1965e69943e16c8220da74211bd (patch) | |
tree | 3c75a3d959cba800bd5e967c6c95e303483cabbd /synapse/server.py | |
parent | Remove SynapseRequest.get_user_agent (#9069) (diff) | |
download | synapse-0f8945e166b5f1965e69943e16c8220da74211bd.tar.xz |
Kill off `HomeServer.get_ip_from_request()` (#9080)
Homeserver.get_ip_from_request() used to be a bit more complicated, but now it is totally redundant. Let's get rid of it.
Diffstat (limited to '')
-rw-r--r-- | synapse/server.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/synapse/server.py b/synapse/server.py index a198b0eb46..12da92b63c 100644 --- a/synapse/server.py +++ b/synapse/server.py @@ -283,10 +283,6 @@ class HomeServer(metaclass=abc.ABCMeta): """ return self._reactor - def get_ip_from_request(self, request) -> str: - # X-Forwarded-For is handled by our custom request type. - return request.getClientIP() - def is_mine(self, domain_specific_string: DomainSpecificString) -> bool: return domain_specific_string.domain == self.hostname |