mirror of
https://github.com/tun2proxy/tun2proxy.git
synced 2025-04-20 13:59: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]
|
[package]
|
||||||
name = "tun2proxy"
|
name = "tun2proxy"
|
||||||
version = "0.2.24"
|
version = "0.3.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
repository = "https://github.com/blechschmidt/tun2proxy"
|
repository = "https://github.com/blechschmidt/tun2proxy"
|
||||||
|
@ -23,6 +23,7 @@ digest_auth = "0.3"
|
||||||
dotenvy = "0.15"
|
dotenvy = "0.15"
|
||||||
env_logger = "0.11"
|
env_logger = "0.11"
|
||||||
hashlink = "0.9"
|
hashlink = "0.9"
|
||||||
|
hickory-proto = "0.24"
|
||||||
httparse = "1"
|
httparse = "1"
|
||||||
ipstack = { version = "0.0.10" }
|
ipstack = { version = "0.0.10" }
|
||||||
lazy_static = "1"
|
lazy_static = "1"
|
||||||
|
@ -33,7 +34,6 @@ thiserror = "1"
|
||||||
tokio = { version = "1", features = ["full"] }
|
tokio = { version = "1", features = ["full"] }
|
||||||
tokio-util = "0.7"
|
tokio-util = "0.7"
|
||||||
tproxy-config = { version = "6", default-features = false }
|
tproxy-config = { version = "6", default-features = false }
|
||||||
trust-dns-proto = "0.23"
|
|
||||||
tun2 = { version = "2", features = ["async"] }
|
tun2 = { version = "2", features = ["async"] }
|
||||||
udp-stream = { version = "0.0.12", default-features = false }
|
udp-stream = { version = "0.0.12", default-features = false }
|
||||||
unicase = "2"
|
unicase = "2"
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
use std::{net::IpAddr, str::FromStr};
|
use hickory_proto::op::MessageType;
|
||||||
use trust_dns_proto::op::MessageType;
|
use hickory_proto::{
|
||||||
use trust_dns_proto::{
|
|
||||||
op::{Message, ResponseCode},
|
op::{Message, ResponseCode},
|
||||||
rr::{record_type::RecordType, Name, RData, Record},
|
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> {
|
pub fn build_dns_response(mut request: Message, domain: &str, ip: IpAddr, ttl: u32) -> Result<Message, String> {
|
||||||
let record = match ip {
|
let record = match ip {
|
||||||
|
|
|
@ -26,7 +26,7 @@ pub enum Error {
|
||||||
IpStack(#[from] ipstack::IpStackError),
|
IpStack(#[from] ipstack::IpStackError),
|
||||||
|
|
||||||
#[error("DnsProtoError {0:?}")]
|
#[error("DnsProtoError {0:?}")]
|
||||||
DnsProto(#[from] trust_dns_proto::error::ProtoError),
|
DnsProto(#[from] hickory_proto::error::ProtoError),
|
||||||
|
|
||||||
#[error("httparse::Error {0:?}")]
|
#[error("httparse::Error {0:?}")]
|
||||||
Httparse(#[from] httparse::Error),
|
Httparse(#[from] httparse::Error),
|
||||||
|
|
Loading…
Add table
Reference in a new issue