mirror of
https://github.com/girlbossceo/conduwuit.git
synced 2025-12-15 03:38:56 -05:00
forbid requesting room directories or media of forbidden servers
This commit is contained in:
parent
371103fb35
commit
81a797945b
4 changed files with 13 additions and 1 deletions
|
|
@ -1324,6 +1324,8 @@ pub struct Config {
|
|||
/// Vector list of servers that conduwuit will refuse to download remote
|
||||
/// media from.
|
||||
///
|
||||
/// This is in addition to `forbidden_remote_server_names`.
|
||||
///
|
||||
/// default: []
|
||||
#[serde(default)]
|
||||
pub prevent_media_downloads_from: HashSet<OwnedServerName>,
|
||||
|
|
@ -1355,6 +1357,8 @@ pub struct Config {
|
|||
/// room directory requests for. Useful for preventing our users from
|
||||
/// wandering into bad servers or spaces.
|
||||
///
|
||||
/// This is in addition to `forbidden_remote_server_names`.
|
||||
///
|
||||
/// default: []
|
||||
#[serde(default = "HashSet::new")]
|
||||
pub forbidden_remote_room_directory_server_names: HashSet<OwnedServerName>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue