aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/resolver.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2024-12-21 03:06:56 +0000
committermat <git@matdoes.dev>2024-12-21 03:06:56 +0000
commit641b99c7afda4b747ab2f293cc106cc15968d0f4 (patch)
tree20f118a4a00852014527805bb28f9c7feb359a03 /azalea-protocol/src/resolver.rs
parent98e5efb577ebb0b2671c3164c3a8bb7c398b47ea (diff)
downloadazalea-drasl-641b99c7afda4b747ab2f293cc106cc15968d0f4.tar.xz
update trust-dns -> hickory-dns
Diffstat (limited to 'azalea-protocol/src/resolver.rs')
-rwxr-xr-xazalea-protocol/src/resolver.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/azalea-protocol/src/resolver.rs b/azalea-protocol/src/resolver.rs
index 43f15dce..a21d5d9b 100755
--- a/azalea-protocol/src/resolver.rs
+++ b/azalea-protocol/src/resolver.rs
@@ -3,11 +3,11 @@
use std::net::{IpAddr, SocketAddr};
use async_recursion::async_recursion;
-use thiserror::Error;
-use trust_dns_resolver::{
+use hickory_resolver::{
config::{ResolverConfig, ResolverOpts},
Name, TokioAsyncResolver,
};
+use thiserror::Error;
use crate::ServerAddress;
@@ -30,7 +30,7 @@ pub async fn resolve_address(address: &ServerAddress) -> Result<SocketAddr, Reso
}
// we specify Cloudflare instead of the default resolver because
- // trust_dns_resolver has an issue on Windows where it's really slow using the
+ // hickory_resolver has an issue on Windows where it's really slow using the
// default resolver
let resolver = TokioAsyncResolver::tokio(ResolverConfig::cloudflare(), ResolverOpts::default());