From 824b443d2b4fb49598aba23a96b3cd56edf1bfff Mon Sep 17 00:00:00 2001 From: ssrlive <30760636+ssrlive@users.noreply.github.com> Date: Sat, 20 Jul 2024 13:00:21 +0800 Subject: [PATCH] Bump version 0.3.0 --- Cargo.toml | 4 ++-- src/dns.rs | 6 +++--- src/error.rs | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 7d8bffb..96c6f8b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tun2proxy" -version = "0.2.24" +version = "0.3.0" edition = "2021" license = "MIT" repository = "https://github.com/blechschmidt/tun2proxy" @@ -23,6 +23,7 @@ digest_auth = "0.3" dotenvy = "0.15" env_logger = "0.11" hashlink = "0.9" +hickory-proto = "0.24" httparse = "1" ipstack = { version = "0.0.10" } lazy_static = "1" @@ -33,7 +34,6 @@ thiserror = "1" tokio = { version = "1", features = ["full"] } tokio-util = "0.7" tproxy-config = { version = "6", default-features = false } -trust-dns-proto = "0.23" tun2 = { version = "2", features = ["async"] } udp-stream = { version = "0.0.12", default-features = false } unicase = "2" diff --git a/src/dns.rs b/src/dns.rs index a5ce30c..6142ba3 100644 --- a/src/dns.rs +++ b/src/dns.rs @@ -1,9 +1,9 @@ -use std::{net::IpAddr, str::FromStr}; -use trust_dns_proto::op::MessageType; -use trust_dns_proto::{ +use hickory_proto::op::MessageType; +use hickory_proto::{ op::{Message, ResponseCode}, rr::{record_type::RecordType, Name, RData, Record}, }; +use std::{net::IpAddr, str::FromStr}; pub fn build_dns_response(mut request: Message, domain: &str, ip: IpAddr, ttl: u32) -> Result { let record = match ip { diff --git a/src/error.rs b/src/error.rs index 2afd19b..f460b62 100644 --- a/src/error.rs +++ b/src/error.rs @@ -26,7 +26,7 @@ pub enum Error { IpStack(#[from] ipstack::IpStackError), #[error("DnsProtoError {0:?}")] - DnsProto(#[from] trust_dns_proto::error::ProtoError), + DnsProto(#[from] hickory_proto::error::ProtoError), #[error("httparse::Error {0:?}")] Httparse(#[from] httparse::Error),