1
0

block groups requests to fosdem

This commit is contained in:
Richard van der Hoff
2021-02-06 11:02:53 +00:00
parent 25757a3d47
commit 3f6530ed55

View File

@@ -42,6 +42,9 @@ def _create_rerouter(func_name):
else:
destination = get_domain_from_id(group_id)
if destination == "fosdem.org":
raise SynapseError(502, "Failed to contact group server")
try:
return await getattr(self.transport_client, func_name)(
destination, group_id, *args, **kwargs