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

@ -62,7 +62,7 @@ where
// spawns async handshake to avoid blocking thread by sequential handshake.
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 {
return Err(RpxyError::Proxy(format!("Failed to handshake TLS: {}", e)));
}