From 307d42ccc7132f0a91413defb827387e615c2c38 Mon Sep 17 00:00:00 2001 From: strawberry Date: Mon, 11 Mar 2024 19:24:27 -0400 Subject: [PATCH] disable update check by default save the few bytes of bandwidth for something else also now that we send our User-Agent, it is technically sending conduwuit versions now Signed-off-by: strawberry --- conduwuit-example.toml | 8 ++++---- src/config/mod.rs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/conduwuit-example.toml b/conduwuit-example.toml index 6fae84a1..6d3a256b 100644 --- a/conduwuit-example.toml +++ b/conduwuit-example.toml @@ -210,11 +210,11 @@ url_preview_check_root_domain = false # controls whether encrypted rooms and events are allowed (default true) #allow_encryption = false -# conduwuit will send a simple GET request periodically to `https://pupbrain.dev/check-for-updates/stable` +# if enabled, conduwuit will send a simple GET request periodically to `https://pupbrain.dev/check-for-updates/stable` # for any new announcements made. Despite the name, this is not an update check -# endpoint, it is simply an announcement check endpoint. I don't plan on using -# this so feel free to disable it. -allow_check_for_updates = true +# endpoint, it is simply an announcement check endpoint. +# Defaults to false. +#allow_check_for_updates = false # If you are using delegation via well-known files and you cannot serve them from your reverse proxy, you can # uncomment these to serve them directly from conduwuit. This requires proxying all requests to conduwuit, not just `/_matrix` to work. diff --git a/src/config/mod.rs b/src/config/mod.rs index c3e309c2..167373ed 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -46,7 +46,7 @@ pub struct Config { pub db_cache_capacity_mb: f64, #[serde(default = "default_new_user_displayname_suffix")] pub new_user_displayname_suffix: String, - #[serde(default = "true_fn")] + #[serde(default)] pub allow_check_for_updates: bool, #[serde(default = "default_conduit_cache_capacity_modifier")] pub conduit_cache_capacity_modifier: f64,