diff --git a/Cargo.toml b/Cargo.toml index 0a5cd0c2..3b282027 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -75,7 +75,7 @@ base64 = "0.22" # Used when hashing the state ring = "0.17.7" # Used when querying the SRV record of other servers -trust-dns-resolver = "0.22.0" +hickory-resolver = "0.24" # Used to find matching events for appservices regex = "1.8.1" # jwt jsonwebtokens diff --git a/src/service/globals/mod.rs b/src/service/globals/mod.rs index 798c725a..ab66ed45 100644 --- a/src/service/globals/mod.rs +++ b/src/service/globals/mod.rs @@ -9,6 +9,7 @@ use crate::api::server_server::FedDest; use crate::{services, Config, Error, Result}; use futures_util::FutureExt; +use hickory_resolver::TokioAsyncResolver; use hyper::{ client::connect::dns::{GaiResolver, Name}, service::Service as HyperService, @@ -37,7 +38,6 @@ use std::{ }; use tokio::sync::{broadcast, watch::Receiver, Mutex, RwLock, Semaphore}; use tracing::{error, info}; -use trust_dns_resolver::TokioAsyncResolver; use base64::{engine::general_purpose, Engine as _};