|
|
@ -35,7 +35,7 @@ where |
|
|
|
Mode::Tls => { |
|
|
|
Mode::Tls => { |
|
|
|
let stream = { |
|
|
|
let stream = { |
|
|
|
let connector = connector.unwrap_or_else(AsyncTlsConnector::new); |
|
|
|
let connector = connector.unwrap_or_else(AsyncTlsConnector::new); |
|
|
|
connector.connect(&domain, socket)?.await? |
|
|
|
connector.connect(&domain, socket).await? |
|
|
|
}; |
|
|
|
}; |
|
|
|
Ok(StreamSwitcher::Tls(stream)) |
|
|
|
Ok(StreamSwitcher::Tls(stream)) |
|
|
|
} |
|
|
|
} |
|
|
|