mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-24 08:09:25 -05:00
Allow clients to specify a server_name to avoid 'No known servers'
Multiple server_names are supported via ?server_name=foo&server_name=bar
This commit is contained in:
parent
6fb51eaf7b
commit
332d7e9b97
@ -232,6 +232,9 @@ class JoinRoomAliasServlet(ClientV1RestServlet):
|
|||||||
|
|
||||||
if RoomID.is_valid(room_identifier):
|
if RoomID.is_valid(room_identifier):
|
||||||
room_id = room_identifier
|
room_id = room_identifier
|
||||||
|
try:
|
||||||
|
remote_room_hosts = request.args["server_name"]
|
||||||
|
except:
|
||||||
remote_room_hosts = None
|
remote_room_hosts = None
|
||||||
elif RoomAlias.is_valid(room_identifier):
|
elif RoomAlias.is_valid(room_identifier):
|
||||||
handler = self.handlers.room_member_handler
|
handler = self.handlers.room_member_handler
|
||||||
|
Loading…
Reference in New Issue
Block a user