Skip to content

Commit

Permalink
docs: clarify the use of environment variables for proxy
Browse files Browse the repository at this point in the history
Closes #1921
  • Loading branch information
mkauf committed Sep 28, 2017
1 parent eac324f commit 46d63bb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions docs/libcurl/opts/CURLOPT_NOPROXY.3
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,13 @@ If the name in the noproxy list has a leading period, it is a domain match
against the provided host name. This way ".example.com" will switch off proxy
use for both "www.example.com" as well as for "foo.example.com".

Setting the noproxy string to "" (an empty string) will explicitly enable the
proxy for all host names, even if there is an environment variable set for it.

The application does not have to keep the string around after setting this
option.
.SH "Environment variables"
See \fICURLOPT_PROXY(3)\fP
.SH DEFAULT
NULL
.SH PROTOCOLS
Expand Down
3 changes: 2 additions & 1 deletion docs/libcurl/opts/CURLOPT_PROXY.3
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ names to not use a proxy for (even if one of the previous mention variables
are set). That is the exact equivalent of setting the \fICURLOPT_NOPROXY(3)\fP
option.

The \fICURLOPT_PROXY(3)\fP option overrides environment variables.
The \fICURLOPT_PROXY(3)\fP and \fICURLOPT_NOPROXY(3)\fP options override
environment variables.
.SH DEFAULT
Default is NULL, meaning no proxy is used.

Expand Down

0 comments on commit 46d63bb

Please sign in to comment.