deps and remove deprecated method in rustls::Aceptor

This commit is contained in:
Jun Kurihara 2022-10-31 15:42:16 +09:00
commit c084cb67c6
No known key found for this signature in database
GPG key ID: D992B3E3DE1DED23
2 changed files with 7 additions and 7 deletions

View file

@ -1,6 +1,6 @@
[package] [package]
name = "rpxy" name = "rpxy"
version = "0.1.1" version = "0.1.2"
authors = ["Jun Kurihara"] authors = ["Jun Kurihara"]
homepage = "https://github.com/junkurihara/rust-rpxy" homepage = "https://github.com/junkurihara/rust-rpxy"
repository = "https://github.com/junkurihara/rust-rpxy" repository = "https://github.com/junkurihara/rust-rpxy"
@ -17,9 +17,9 @@ http3 = ["quinn", "h3", "h3-quinn"]
[dependencies] [dependencies]
env_logger = "0.9.1" env_logger = "0.9.1"
anyhow = "1.0.65" anyhow = "1.0.66"
clap = { version = "4.0.15", features = ["std", "cargo", "wrap_help"] } clap = { version = "4.0.18", features = ["std", "cargo", "wrap_help"] }
futures = { version = "0.3.24", features = ["alloc", "async-await"] } futures = { version = "0.3.25", features = ["alloc", "async-await"] }
hyper = { version = "0.14.20", default-features = false, features = [ hyper = { version = "0.14.20", default-features = false, features = [
"server", "server",
"http1", "http1",
@ -37,11 +37,11 @@ tokio = { version = "1.21.2", default-features = false, features = [
] } ] }
tokio-rustls = { version = "0.23.4", features = ["early-data"] } tokio-rustls = { version = "0.23.4", features = ["early-data"] }
rustls-pemfile = "1.0.1" rustls-pemfile = "1.0.1"
rustls = { version = "0.20.6", default-features = false } rustls = { version = "0.20.7", default-features = false }
rand = "0.8.5" rand = "0.8.5"
toml = { version = "0.5.9", default-features = false } toml = { version = "0.5.9", default-features = false }
rustc-hash = "1.1.0" rustc-hash = "1.1.0"
serde = { version = "1.0.145", default-features = false, features = ["derive"] } serde = { version = "1.0.147", default-features = false, features = ["derive"] }
hyper-rustls = { version = "0.23.0", default-features = false, features = [ hyper-rustls = { version = "0.23.0", default-features = false, features = [
"tokio-runtime", "tokio-runtime",
"webpki-tokio", "webpki-tokio",

View file

@ -62,7 +62,7 @@ where
// spawns async handshake to avoid blocking thread by sequential handshake. // spawns async handshake to avoid blocking thread by sequential handshake.
let handshake_fut = async move { let handshake_fut = async move {
let acceptor = tokio_rustls::LazyConfigAcceptor::new(rustls::server::Acceptor::new().unwrap(), raw_stream).await; let acceptor = tokio_rustls::LazyConfigAcceptor::new(rustls::server::Acceptor::default(), raw_stream).await;
if let Err(e) = acceptor { if let Err(e) = acceptor {
return Err(RpxyError::Proxy(format!("Failed to handshake TLS: {}", e))); return Err(RpxyError::Proxy(format!("Failed to handshake TLS: {}", e)));
} }