diff --git a/Cargo.toml b/Cargo.toml index 72ac944..57312b0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,6 +24,7 @@ zeroize = { version = "1.8", features = ["derive"] } # Network socket2 = { version = "0.5", features = ["all"] } +nix = { version = "0.28", default-features = false, features = ["net"] } # Serialization serde = { version = "1.0", features = ["derive"] } @@ -47,6 +48,7 @@ regex = "1.11" crossbeam-queue = "0.3" num-bigint = "0.4" num-traits = "0.2" +anyhow = "1.0" # HTTP reqwest = { version = "0.12", features = ["rustls-tls"], default-features = false } @@ -54,6 +56,9 @@ hyper = { version = "1", features = ["server", "http1"] } hyper-util = { version = "0.1", features = ["tokio", "server-auto"] } http-body-util = "0.1" httpdate = "1.0" +tokio-rustls = { version = "0.26", default-features = false, features = ["tls12"] } +rustls = { version = "0.23", default-features = false, features = ["std", "tls12", "ring"] } +webpki-roots = "0.26" [dev-dependencies] tokio-test = "0.4" diff --git a/src/proxy/handshake.rs b/src/proxy/handshake.rs index 8eff195..8b61112 100644 --- a/src/proxy/handshake.rs +++ b/src/proxy/handshake.rs @@ -14,7 +14,6 @@ use crate::error::{ProxyError, HandshakeResult}; use crate::stats::ReplayChecker; use crate::config::ProxyConfig; use crate::tls_front::{TlsFrontCache, emulator}; -use crate::tls_front::types::CachedTlsData; /// Result of successful handshake ///