mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-13 20:26:52 +00:00
Add trusted_servers, filter servers to query keys by trusted_servers
This commit is contained in:
1 parent
c9f4ff5cf8
commit
79c9de98cd
3 files changed
+19
-3
No files matched your search
@@ -139,6 +139,10 @@ impl Globals {
|
||||
self.config.allow_federation
|
||||
}
|
||||
|
||||
pub fn trusted_servers(&self) -> &[Box<ServerName>] {
|
||||
&self.config.trusted_servers
|
||||
}
|
||||
|
||||
pub fn dns_resolver(&self) -> &TokioAsyncResolver {
|
||||
&self.dns_resolver
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user