From 3de026160eb764393d7e49116bf1bc16166b0708 Mon Sep 17 00:00:00 2001 From: Shannon Sterz Date: Sat, 21 Feb 2026 15:12:08 +0100 Subject: [PATCH] docs: express forbidden_remote_server_names as valid regex this field expects a regex not a glob, so the correct value should be ".*" if one wants to block all remote server names. otherwise, setting "*" as documented results in an error on start because the configuration could not be properly parsed. --- conduwuit-example.toml | 2 +- src/core/config/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/conduwuit-example.toml b/conduwuit-example.toml index 1f7398d2..13412d45 100644 --- a/conduwuit-example.toml +++ b/conduwuit-example.toml @@ -1325,7 +1325,7 @@ # sender user's server name, inbound federation X-Matrix origin, and # outbound federation handler. # -# You can set this to ["*"] to block all servers by default, and then +# You can set this to [".*"] to block all servers by default, and then # use `allowed_remote_server_names` to allow only specific servers. # # example: ["badserver\\.tld$", "badphrase", "19dollarfortnitecards"] diff --git a/src/core/config/mod.rs b/src/core/config/mod.rs index 0ad6fbb6..e3f88a21 100644 --- a/src/core/config/mod.rs +++ b/src/core/config/mod.rs @@ -1525,7 +1525,7 @@ pub struct Config { /// sender user's server name, inbound federation X-Matrix origin, and /// outbound federation handler. /// - /// You can set this to ["*"] to block all servers by default, and then + /// You can set this to [".*"] to block all servers by default, and then /// use `allowed_remote_server_names` to allow only specific servers. /// /// example: ["badserver\\.tld$", "badphrase", "19dollarfortnitecards"]