aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-04-12 21:29:36 -0430
committermat <git@matdoes.dev>2025-04-12 21:29:36 -0430
commited4d5937a763673cf8d6750c3357fdb166573995 (patch)
tree53846950efdfde5ce5aa141fcf5f9de34b3d7e93 /azalea-protocol
parent31b143f821efb4a7539a2ad43b5684813e83069c (diff)
downloadazalea-drasl-ed4d5937a763673cf8d6750c3357fdb166573995.tar.xz
upgrade deps
Diffstat (limited to 'azalea-protocol')
-rw-r--r--azalea-protocol/Cargo.toml2
-rw-r--r--azalea-protocol/src/resolver.rs9
2 files changed, 7 insertions, 4 deletions
diff --git a/azalea-protocol/Cargo.toml b/azalea-protocol/Cargo.toml
index f2f6a9cf..dec299fc 100644
--- a/azalea-protocol/Cargo.toml
+++ b/azalea-protocol/Cargo.toml
@@ -46,7 +46,7 @@ thiserror.workspace = true
tokio = { workspace = true, features = ["io-util", "net", "macros"] }
tokio-util = { workspace = true, features = ["codec"] }
tracing.workspace = true
-hickory-resolver = { workspace = true, features = ["tokio-runtime"] }
+hickory-resolver = { workspace = true, features = ["tokio"] }
uuid.workspace = true
crc32fast = { workspace = true, optional = true }
diff --git a/azalea-protocol/src/resolver.rs b/azalea-protocol/src/resolver.rs
index 63b66be3..c01a485b 100644
--- a/azalea-protocol/src/resolver.rs
+++ b/azalea-protocol/src/resolver.rs
@@ -4,8 +4,7 @@ use std::net::{IpAddr, SocketAddr};
use async_recursion::async_recursion;
use hickory_resolver::{
- Name, TokioAsyncResolver,
- config::{ResolverConfig, ResolverOpts},
+ Name, TokioResolver, config::ResolverConfig, name_server::TokioConnectionProvider,
};
use thiserror::Error;
@@ -32,7 +31,11 @@ pub async fn resolve_address(address: &ServerAddress) -> Result<SocketAddr, Reso
// we specify Cloudflare instead of the default resolver because
// hickory_resolver has an issue on Windows where it's really slow using the
// default resolver
- let resolver = TokioAsyncResolver::tokio(ResolverConfig::cloudflare(), ResolverOpts::default());
+ let resolver = TokioResolver::builder_with_config(
+ ResolverConfig::cloudflare(),
+ TokioConnectionProvider::default(),
+ )
+ .build();
// first, we do a srv lookup for _minecraft._tcp.<host>
let srv_redirect_result = resolver