mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 16:34:47 -04:00
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.
This commit is contained in:
parent
2ec8ca5e60
commit
0f8945e166
9 changed files with 15 additions and 52 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue