mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-12 07:44:18 +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 =
|
||||
rustls::ClientConnection::new(Arc::new(config), server_name).unwrap();
|
||||
log::info!("connect TCPstream to {}", target);
|
||||
let url = format!("{}:443", target);
|
||||
match TcpStream::connect(url) {
|
||||
match TcpStream::connect((target, 443)) {
|
||||
Ok(mut sock) => {
|
||||
match conn.complete_io(&mut sock) {
|
||||
Ok(_) => log::info!("handshake complete"),
|
||||
|
|
|
|||
Loading…
Reference in a new issue