mirror of
https://github.com/tun2proxy/tun2proxy.git
synced 2025-04-21 14:29:10 +00:00
Bump version 0.3.0
This commit is contained in:
parent
06ed994655
commit
824b443d2b
3 changed files with 6 additions and 6 deletions
|
@ -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"
|
||||
|
|
|
@ -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<Message, String> {
|
||||
let record = match ip {
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Add table
Reference in a new issue