Skip to content

Commit 1a490e2

Browse files
committed
fix(client): use Ssl instance in creation of SslStream
This fix brings SNI into working order
1 parent 5bf91f0 commit 1a490e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ mod openssl {
444444
//}
445445
let ssl = try!(Ssl::new(&self.context));
446446
try!(ssl.set_hostname(host));
447-
SslStream::new(&self.context, stream).map_err(From::from)
447+
SslStream::new_from(ssl, stream).map_err(From::from)
448448
}
449449

450450
fn wrap_server(&self, stream: HttpStream) -> ::Result<Self::Stream> {

0 commit comments

Comments
 (0)