mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
replace TcpStream::connect(&str) with TcpStream::connect((&str, u16))
resolves #453
This commit is contained in:
parent
b255468eb1
commit
0fc9a07f5e
1 changed files with 1 additions and 2 deletions
|
|
@ -311,8 +311,7 @@ impl Tls {
|
||||||
let mut conn =
|
let mut conn =
|
||||||
rustls::ClientConnection::new(Arc::new(config), server_name).unwrap();
|
rustls::ClientConnection::new(Arc::new(config), server_name).unwrap();
|
||||||
log::info!("connect TCPstream to {}", target);
|
log::info!("connect TCPstream to {}", target);
|
||||||
let url = format!("{}:443", target);
|
match TcpStream::connect((target, 443)) {
|
||||||
match TcpStream::connect(url) {
|
|
||||||
Ok(mut sock) => {
|
Ok(mut sock) => {
|
||||||
match conn.complete_io(&mut sock) {
|
match conn.complete_io(&mut sock) {
|
||||||
Ok(_) => log::info!("handshake complete"),
|
Ok(_) => log::info!("handshake complete"),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue