From 641b99c7afda4b747ab2f293cc106cc15968d0f4 Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 21 Dec 2024 03:06:56 +0000 Subject: update trust-dns -> hickory-dns --- azalea-protocol/Cargo.toml | 2 +- azalea-protocol/src/resolver.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'azalea-protocol') diff --git a/azalea-protocol/Cargo.toml b/azalea-protocol/Cargo.toml index 414b8b4c..3d5d2ec1 100644 --- a/azalea-protocol/Cargo.toml +++ b/azalea-protocol/Cargo.toml @@ -47,7 +47,7 @@ thiserror = { workspace = true } tokio = { workspace = true, features = ["io-util", "net", "macros"] } tokio-util = { workspace = true, features = ["codec"] } tracing = { workspace = true } -trust-dns-resolver = { workspace = true, features = ["tokio-runtime"] } +hickory-resolver = { workspace = true, features = ["tokio-runtime"] } uuid = { workspace = true } [features] 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