Skip to content

Commit

Permalink
feat(proxy): Adds NO_PROXY environment variable support
Browse files Browse the repository at this point in the history
Adds support for loading from the `NO_PROXY` or `no_proxy` environment
variables. This should make reqwest support the system proxy settings.
Please note that I brought in one additional dependency in order to
handle CIDR blocks in the no proxy settings.

Closes seanmonstar#705
  • Loading branch information
thomastaylor312 committed May 19, 2020
1 parent f332b43 commit 18b0ba1
Show file tree
Hide file tree
Showing 2 changed files with 231 additions and 53 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ mime_guess = "2.0"
percent-encoding = "2.1"
tokio = { version = "0.2.5", default-features = false, features = ["tcp", "time"] }
pin-project-lite = "0.1.1"
ipnet = "2.3"

# TODO: candidates for optional features

Expand Down
Loading

0 comments on commit 18b0ba1

Please sign in to comment.