fix(ssl): set_hostname on ssl connections

This commit is contained in:
Sean McArthur
2014-12-11 20:27:37 -08:00
parent 7f931845cc
commit 3ac277b1f0
4 changed files with 15 additions and 9 deletions

View File

@@ -95,7 +95,7 @@ impl net::NetworkStream for MockStream {
struct MockConnector;
impl net::NetworkConnector<MockStream> for MockConnector {
fn connect<To: ToSocketAddr>(&mut self, _addr: To, _scheme: &str) -> IoResult<MockStream> {
fn connect(&mut self, _: &str, _: u16, _: &str) -> IoResult<MockStream> {
Ok(MockStream::new())
}