diff --git a/transports/websocket/Cargo.toml b/transports/websocket/Cargo.toml index ab2a0f38..c1d4e03d 100644 --- a/transports/websocket/Cargo.toml +++ b/transports/websocket/Cargo.toml @@ -10,14 +10,14 @@ keywords = ["peer-to-peer", "libp2p", "networking"] categories = ["network-programming", "asynchronous"] [dependencies] -async-tls = "0.6" +async-tls = "0.7.0" bytes = "0.5" either = "1.5.3" futures = "0.3.1" libp2p-core = { version = "0.17.0", path = "../../core" } log = "0.4.8" quicksink = "0.1" -rustls = "0.16" +rustls = "0.17.0" rw-stream-sink = "0.2.0" soketto = { version = "0.3", features = ["deflate"] } url = "2.1" diff --git a/transports/websocket/src/framed.rs b/transports/websocket/src/framed.rs index 830b645d..191636a0 100644 --- a/transports/websocket/src/framed.rs +++ b/transports/websocket/src/framed.rs @@ -308,11 +308,6 @@ where let dns_name = dns_name.expect("for use_tls we have checked that dns_name is some"); trace!("starting TLS handshake with {}", address); let stream = self.tls_config.client.connect(&dns_name, stream) - .map_err(|e| { - // We should never enter here as we passed a `DNSNameRef` to `connect`. - debug!("invalid domain name: {:?}", dns_name); - Error::Tls(e.into()) - })? .map_err(|e| { debug!("TLS handshake with {} failed: {}", address, e); Error::Tls(tls::Error::from(e))