Add socks5 proxy support

This commit is contained in:
Ao Chen 2024-04-04 12:13:40 +08:00 committed by Sergio Gasquez Arcos
parent 651cec427a
commit f25a53db7d
2 changed files with 20 additions and 1 deletions

19
Cargo.lock generated
View File

@ -427,6 +427,12 @@ version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fea41bba32d969b513997752735605054bc0dfa92b4c56bf1189f2e174be7a10"
[[package]]
name = "either"
version = "1.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "11157ac094ffbdde99aa67b23417ebdd801842852b500e395a45a9c0aac03e4a"
[[package]]
name = "encode_unicode"
version = "0.3.6"
@ -1389,6 +1395,7 @@ dependencies = [
"tokio",
"tokio-native-tls",
"tokio-rustls",
"tokio-socks",
"tower-service",
"url",
"wasm-bindgen",
@ -1945,6 +1952,18 @@ dependencies = [
"tokio",
]
[[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-util"
version = "0.7.10"

View File

@ -25,7 +25,7 @@ guess_host_triple = "0.1.3"
log = "0.4.20"
miette = { version = "5.10.0", features = ["fancy"] }
regex = "1.10.3"
reqwest = { version = "0.11.24", features = ["blocking"] }
reqwest = { version = "0.11.24", features = ["blocking", "socks"] }
retry = "2.0.0"
serde_json = "1.0.113"
strum = { version = "0.26.1", features = ["derive"] }