diff options
author | Richard van der Hoff <richard@matrix.org> | 2019-07-26 10:08:22 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2019-07-26 10:08:22 +0100 |
commit | d1020653fcbecabcf8e109dafc6258b1f2c2afd0 (patch) | |
tree | b640ab3c818a63b9b76b3ed31ccf15cec247a853 /synapse/federation/federation_server.py | |
parent | 1.2.0rc2 (diff) | |
download | synapse-d1020653fcbecabcf8e109dafc6258b1f2c2afd0.tar.xz |
Log when we receive a /make_* request from a different origin
Diffstat (limited to 'synapse/federation/federation_server.py')
-rw-r--r-- | synapse/federation/federation_server.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/federation/federation_server.py b/synapse/federation/federation_server.py index 8c0a18b120..ed2b6d5eef 100644 --- a/synapse/federation/federation_server.py +++ b/synapse/federation/federation_server.py @@ -369,7 +369,7 @@ class FederationServer(FederationBase): logger.warn("Room version %s not in %s", room_version, supported_versions) raise IncompatibleRoomVersionError(room_version=room_version) - pdu = yield self.handler.on_make_join_request(room_id, user_id) + pdu = yield self.handler.on_make_join_request(origin, room_id, user_id) time_now = self._clock.time_msec() defer.returnValue( {"event": pdu.get_pdu_json(time_now), "room_version": room_version} @@ -423,7 +423,7 @@ class FederationServer(FederationBase): def on_make_leave_request(self, origin, room_id, user_id): origin_host, _ = parse_server_name(origin) yield self.check_server_matches_acl(origin_host, room_id) - pdu = yield self.handler.on_make_leave_request(room_id, user_id) + pdu = yield self.handler.on_make_leave_request(origin, room_id, user_id) room_version = yield self.store.get_room_version(room_id) |