Skip to content

Commit

Permalink
fix(client): use Ssl instance in creation of SslStream
Browse files Browse the repository at this point in the history
This fix brings SNI into working order
  • Loading branch information
infinityb committed Jun 26, 2015
1 parent 5bf91f0 commit 1a490e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net.rs
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ mod openssl {
//}
let ssl = try!(Ssl::new(&self.context));
try!(ssl.set_hostname(host));
SslStream::new(&self.context, stream).map_err(From::from)
SslStream::new_from(ssl, stream).map_err(From::from)
}

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

0 comments on commit 1a490e2

Please sign in to comment.