Add support for SOCKS5 proxies, and parsing proxy authorizations from URLs

This commit is contained in:
Diggory Blake
2019-04-05 15:59:18 -07:00
committed by Sean McArthur
parent 871ec6f989
commit c45ff29bfb
8 changed files with 486 additions and 103 deletions

View File

@@ -17,28 +17,32 @@ encoding_rs = "0.8"
futures = "0.1.23"
http = "0.1.15"
hyper = "0.12.22"
hyper-old-types = { version = "0.11", optional = true, features = ["compat"] }
flate2 = { version = "^1.0.7", default-features = false, features = ["rust_backend"] }
hyper-tls = { version = "0.3.2", optional = true }
log = "0.4"
mime = "0.3.7"
mime_guess = "2.0.0-alpha.6"
native-tls = { version = "0.2", optional = true }
serde = "1.0"
serde_json = "1.0"
serde_urlencoded = "0.5"
tokio = { version = "0.1.7", default-features = false, features = ["rt-full"] }
tokio = { version = "0.1.7", default-features = false, features = ["rt-full", "tcp"] }
tokio-executor = "0.1.4" # a minimum version so trust-dns-resolver compiles
tokio-io = "0.1"
tokio-threadpool = "0.1.8" # a minimum version so tokio compiles
tokio-timer = "0.2.6" # a minimum version so trust-dns-resolver compiles
trust-dns-resolver = { version = "0.10", optional = true }
url = "1.2"
uuid = { version = "0.7", features = ["v4"] }
# Optional deps...
hyper-old-types = { version = "0.11", optional = true, features = ["compat"] }
hyper-rustls = { version = "0.16", optional = true }
tokio-rustls = { version = "0.9", optional = true }
webpki-roots = { version = "0.16", optional = true }
hyper-tls = { version = "0.3.2", optional = true }
native-tls = { version = "0.2", optional = true }
rustls = { version = "0.15", features = ["dangerous_configuration"], optional = true }
socks = { version = "0.3.2", optional = true }
tokio-rustls = { version = "0.9", optional = true }
trust-dns-resolver = { version = "0.10", optional = true }
webpki-roots = { version = "0.16", optional = true }
[dev-dependencies]
env_logger = "0.6"