From 54062c82fdd8a60ecfc79cd5e6252f9ead4c7a1b Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 24 Apr 2025 10:03:29 -1300 Subject: update to git hickory-resolver and use system resolver --- azalea-protocol/Cargo.toml | 2 +- azalea-protocol/src/resolver.rs | 12 ++++-------- 2 files changed, 5 insertions(+), 9 deletions(-) (limited to 'azalea-protocol') diff --git a/azalea-protocol/Cargo.toml b/azalea-protocol/Cargo.toml index 6e264da8..d1215a92 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"] } +hickory-resolver = { workspace = true, features = ["tokio", "system-config"] } uuid.workspace = true crc32fast = { workspace = true, optional = true } diff --git a/azalea-protocol/src/resolver.rs b/azalea-protocol/src/resolver.rs index c01a485b..4cd2faad 100644 --- a/azalea-protocol/src/resolver.rs +++ b/azalea-protocol/src/resolver.rs @@ -3,9 +3,7 @@ use std::net::{IpAddr, SocketAddr}; use async_recursion::async_recursion; -use hickory_resolver::{ - Name, TokioResolver, config::ResolverConfig, name_server::TokioConnectionProvider, -}; +use hickory_resolver::{Name, TokioResolver, name_server::TokioConnectionProvider}; use thiserror::Error; use crate::ServerAddress; @@ -31,11 +29,9 @@ pub async fn resolve_address(address: &ServerAddress) -> Result let srv_redirect_result = resolver -- cgit v1.2.3