1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00

feat(ext/fetch): Add socks proxy support (#15372)

This commit is contained in:
SahAssar 2022-08-05 12:49:25 +02:00 committed by GitHub
parent bfdce3cc35
commit 6e6912489c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 1 deletions

13
Cargo.lock generated
View file

@ -3456,6 +3456,7 @@ dependencies = [
"serde_urlencoded",
"tokio",
"tokio-rustls",
"tokio-socks",
"tokio-util",
"tower-service",
"url 2.2.2",
@ -4716,6 +4717,18 @@ dependencies = [
"webpki",
]
[[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"

View file

@ -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"