diff --git a/Cargo.lock b/Cargo.lock index 724e67761..02fb673f5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -647,7 +647,7 @@ dependencies = [ "public-suffix", "rand", "regex", - "rustls", + "rustls 0.20.8", "security-framework", "serde", "serde_yaml", @@ -659,7 +659,7 @@ dependencies = [ "thiserror", "tokio", "tokio-boring", - "tokio-rustls", + "tokio-rustls 0.24.1", "tokio-test", "tokio-tungstenite", "tokio-util", @@ -2271,6 +2271,18 @@ dependencies = [ "webpki", ] +[[package]] +name = "rustls" +version = "0.21.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d1feddffcfcc0b33f5c6ce9a29e341e4cd59c3f78e7ee45f4a40c038b1d6cbb" +dependencies = [ + "log", + "ring", + "rustls-webpki", + "sct", +] + [[package]] name = "rustls-pemfile" version = "1.0.3" @@ -2280,6 +2292,16 @@ dependencies = [ "base64 0.21.2", ] +[[package]] +name = "rustls-webpki" +version = "0.101.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "261e9e0888cba427c3316e6322805653c9425240b6fd96cee7cb671ab70ab8d0" +dependencies = [ + "ring", + "untrusted", +] + [[package]] name = "rustversion" version = "1.0.14" @@ -2772,11 +2794,21 @@ version = "0.23.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c43ee83903113e03984cb9e5cebe6c04a5116269e900e3ddba8f068a62adda59" dependencies = [ - "rustls", + "rustls 0.20.8", "tokio", "webpki", ] +[[package]] +name = "tokio-rustls" +version = "0.24.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c28327cf380ac148141087fbfb9de9d7bd4e84ab5d2c28fbc911d753de8a7081" +dependencies = [ + "rustls 0.21.6", + "tokio", +] + [[package]] name = "tokio-stream" version = "0.1.14" @@ -2999,13 +3031,13 @@ dependencies = [ "ipnet", "lazy_static", "rand", - "rustls", + "rustls 0.20.8", "rustls-pemfile", "smallvec", "thiserror", "tinyvec", "tokio", - "tokio-rustls", + "tokio-rustls 0.23.4", "tracing", "url", "webpki", diff --git a/clash_lib/Cargo.toml b/clash_lib/Cargo.toml index fcc427ea6..98d66a175 100644 --- a/clash_lib/Cargo.toml +++ b/clash_lib/Cargo.toml @@ -9,7 +9,7 @@ default = ["shadowsocks"] [dependencies] tokio = { version = "1", features = ["full"] } tokio-util = { version = "0.7", features = ["net", "codec"] } -tokio-rustls = "0.23.4" +tokio-rustls = "0.24.1" thiserror = "1.0" async-trait = "0.1" anyhow = "1.0"