Skip to content

Commit 8411087

Browse files
authored
Bump async-tls (#1532)
* Bump async-tls * Bump rustls version
1 parent 3eec3cc commit 8411087

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

transports/websocket/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ keywords = ["peer-to-peer", "libp2p", "networking"]
1010
categories = ["network-programming", "asynchronous"]
1111

1212
[dependencies]
13-
async-tls = "0.6"
13+
async-tls = "0.7.0"
1414
bytes = "0.5"
1515
either = "1.5.3"
1616
futures = "0.3.1"
1717
libp2p-core = { version = "0.17.0", path = "../../core" }
1818
log = "0.4.8"
1919
quicksink = "0.1"
20-
rustls = "0.16"
20+
rustls = "0.17.0"
2121
rw-stream-sink = "0.2.0"
2222
soketto = { version = "0.3", features = ["deflate"] }
2323
url = "2.1"

transports/websocket/src/framed.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -308,11 +308,6 @@ where
308308
let dns_name = dns_name.expect("for use_tls we have checked that dns_name is some");
309309
trace!("starting TLS handshake with {}", address);
310310
let stream = self.tls_config.client.connect(&dns_name, stream)
311-
.map_err(|e| {
312-
// We should never enter here as we passed a `DNSNameRef` to `connect`.
313-
debug!("invalid domain name: {:?}", dns_name);
314-
Error::Tls(e.into())
315-
})?
316311
.map_err(|e| {
317312
debug!("TLS handshake with {} failed: {}", address, e);
318313
Error::Tls(tls::Error::from(e))

0 commit comments

Comments
 (0)