Update rustls.rs

This commit is contained in:
Rob Ede 2021-03-24 11:15:19 +00:00 committed by GitHub
parent cca77d3ce1
commit 7e5a85468d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -100,7 +100,7 @@ where
} }
pub enum RustlsConnectorServiceFuture<T, U> { pub enum RustlsConnectorServiceFuture<T, U> {
// See issue https://github.com/briansmith/webpki/issues/54 /// See issue https://github.com/briansmith/webpki/issues/54
InvalidDns, InvalidDns,
Future { Future {
connect: Connect<U>, connect: Connect<U>,
@ -120,7 +120,7 @@ where
Self::InvalidDns => Poll::Ready(Err( Self::InvalidDns => Poll::Ready(Err(
io::Error::new(io::ErrorKind::Other, "rustls currently only handles hostname-based connections. See https://github.com/briansmith/webpki/issues/54") io::Error::new(io::ErrorKind::Other, "rustls currently only handles hostname-based connections. See https://github.com/briansmith/webpki/issues/54")
)), )),
Self::Future { connect, connection} => { Self::Future { connect, connection } => {
let stream = ready!(Pin::new(connect).poll(cx))?; let stream = ready!(Pin::new(connect).poll(cx))?;
let connection = connection.take().unwrap(); let connection = connection.take().unwrap();
trace!("SSL Handshake success: {:?}", connection.host()); trace!("SSL Handshake success: {:?}", connection.host());