diff options
author | SahAssar <SahAssar@users.noreply.github.com> | 2022-08-05 12:49:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-05 12:49:25 +0200 |
commit | 6e6912489cc0bf5f661c1940691fcec5879e1f80 (patch) | |
tree | 9bee2690f9a1a820b65f98aa82c0b4f716d22cf4 | |
parent | bfdce3cc35df84a1f77c418d32bca9866cc01dfa (diff) |
feat(ext/fetch): Add socks proxy support (#15372)
-rw-r--r-- | Cargo.lock | 13 | ||||
-rw-r--r-- | ext/fetch/Cargo.toml | 2 |
2 files changed, 14 insertions, 1 deletions
diff --git a/Cargo.lock b/Cargo.lock index 6caf9d585..728deb81b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3456,6 +3456,7 @@ dependencies = [ "serde_urlencoded", "tokio", "tokio-rustls", + "tokio-socks", "tokio-util", "tower-service", "url 2.2.2", @@ -4717,6 +4718,18 @@ dependencies = [ ] [[package]] +name = "tokio-socks" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "51165dfa029d2a65969413a6cc96f354b86b464498702f174a4efa13608fd8c0" +dependencies = [ + "either", + "futures-util", + "thiserror", + "tokio", +] + +[[package]] name = "tokio-stream" version = "0.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" diff --git a/ext/fetch/Cargo.toml b/ext/fetch/Cargo.toml index f7770a2d2..518bca6f9 100644 --- a/ext/fetch/Cargo.toml +++ b/ext/fetch/Cargo.toml @@ -20,7 +20,7 @@ deno_core = { version = "0.146.0", path = "../../core" } deno_tls = { version = "0.51.0", path = "../tls" } dyn-clone = "1" http = "0.2.6" -reqwest = { version = "0.11.11", default-features = false, features = ["rustls-tls", "stream", "gzip", "brotli"] } +reqwest = { version = "0.11.11", default-features = false, features = ["rustls-tls", "stream", "gzip", "brotli", "socks"] } serde = { version = "1.0.136", features = ["derive"] } tokio = { version = "1.17", features = ["full"] } tokio-stream = "0.1.8" |