1
0
Fork 0
mirror of https://gitlab.com/famedly/conduit.git synced 2025-08-06 17:40:59 +00:00

Drop mode and add special allowlist entries '*' and 'default'

This commit is contained in:
Reiner Herrmann 2023-07-29 23:15:16 +02:00
parent 61fd9166f6
commit 8f147379ea
5 changed files with 31 additions and 53 deletions

View file

@ -12,7 +12,6 @@ use futures_util::FutureExt;
use hickory_resolver::TokioAsyncResolver;
use hyper_util::client::legacy::connect::dns::{GaiResolver, Name as HyperName};
use reqwest::dns::{Addrs, Name, Resolve, Resolving};
use crate::config::UrlPreviewMode;
use ruma::{
api::{client::sync::sync_events, federation::discovery::ServerSigningKeys},
DeviceId, RoomVersionId, ServerName, UserId,
@ -325,10 +324,6 @@ impl Service {
self.config.allow_federation
}
pub fn url_preview_mode(&self) -> UrlPreviewMode {
self.config.url_preview_mode
}
pub fn url_preview_allowlist(&self) -> &Vec<String> {
&self.config.url_preview_allowlist
}