mirror of
https://github.com/girlbossceo/conduwuit.git
synced 2025-12-15 11:48:57 -05:00
add federation allow list
This commit is contained in:
parent
eb7d893c86
commit
371103fb35
15 changed files with 101 additions and 94 deletions
|
|
@ -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."
|
||||
))));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue