mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-07-30 16:31:57 +00:00
@@ -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"
|
||||
|
@@ -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))
|
||||
|
Reference in New Issue
Block a user