diff --git a/Cargo.toml b/Cargo.toml index 9b8d308..27c8d6e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,7 +30,7 @@ cookie = { version = "0.15", default-features = false, optional = true} once_cell = "1" url = "2" socks = { version = "0.3", optional = true } -rustls = { version = "0.20", optional = true } +rustls = { version = "0.20.1", optional = true } webpki = { version = "0.22", optional = true } webpki-roots = { version = "0.22", optional = true } rustls-native-certs = { version = "0.6", optional = true } diff --git a/src/stream.rs b/src/stream.rs index 0e5f29f..043a984 100644 --- a/src/stream.rs +++ b/src/stream.rs @@ -368,10 +368,9 @@ pub(crate) fn connect_https(unit: &Unit, hostname: &str) -> Result