add federation allow list

This commit is contained in:
Jade Ellis 2025-01-18 15:21:55 +00:00
parent eb7d893c86
commit 371103fb35
No known key found for this signature in database
GPG key ID: 8705A2A3EBF77BD2
15 changed files with 101 additions and 94 deletions

View file

@ -317,12 +317,7 @@ fn auth_server_checks(services: &Services, x_matrix: &XMatrix) -> Result<()> {
}
let origin = &x_matrix.origin;
if services
.server
.config
.forbidden_remote_server_names
.contains(origin)
{
if services.moderation.is_remote_server_forbidden(origin) {
return Err!(Request(Forbidden(debug_warn!(
"Federation requests from {origin} denied."
))));