We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5bf91f0 commit 1a490e2Copy full SHA for 1a490e2
src/net.rs
@@ -444,7 +444,7 @@ mod openssl {
444
//}
445
let ssl = try!(Ssl::new(&self.context));
446
try!(ssl.set_hostname(host));
447
- SslStream::new(&self.context, stream).map_err(From::from)
+ SslStream::new_from(ssl, stream).map_err(From::from)
448
}
449
450
fn wrap_server(&self, stream: HttpStream) -> ::Result<Self::Stream> {
0 commit comments