From 24605e151d735080bc53074fcccc66f6d37e7248 Mon Sep 17 00:00:00 2001 From: strawberry Date: Sat, 27 Jan 2024 16:28:57 -0500 Subject: [PATCH] make allow_federation default to true Signed-off-by: strawberry --- conduwuit-example.toml | 4 ++-- src/config/mod.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/conduwuit-example.toml b/conduwuit-example.toml index 80a62fba..2381ddb1 100644 --- a/conduwuit-example.toml +++ b/conduwuit-example.toml @@ -133,8 +133,8 @@ allow_registration = false registration_token = "change this token for something specific to your server" # controls whether federation is allowed or not -# defaults to false -allow_federation = true +# defaults to true +# allow_federation = true # controls whether users are allowed to create rooms. # appservices and admins are always allowed to create rooms diff --git a/src/config/mod.rs b/src/config/mod.rs index ec78cd79..d5cecfe2 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -57,7 +57,7 @@ pub struct Config { pub registration_token: Option, #[serde(default = "true_fn")] pub allow_encryption: bool, - #[serde(default)] + #[serde(default = "true_fn")] pub allow_federation: bool, #[serde(default)] pub allow_public_room_directory_over_federation: bool,