Merge pull request #3584 from Quesar/fix-proxy-config

Added no_proxy to filtered env
This commit is contained in:
Mike McQuaid 2017-12-19 09:16:04 +00:00 committed by GitHub
commit 426c998ff5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 23 additions and 4 deletions

View File

@ -251,8 +251,14 @@ can take several different forms:
Sets the FTP proxy to be used by `curl`, `git` and `svn` when downloading Sets the FTP proxy to be used by `curl`, `git` and `svn` when downloading
through Homebrew. through Homebrew.
* `no_proxy`:
Sets the comma-separated list of hostnames and domain names that should be excluded from proxying
by `curl`, `git` and `svn` when downloading through Homebrew.
## USING HOMEBREW BEHIND A PROXY ## USING HOMEBREW BEHIND A PROXY
Use the `http_proxy`, `https_proxy` and/or `ftp_proxy` documented above. For example for an unauthenticated HTTP proxy: Use the `http_proxy`, `https_proxy`, `no_proxy` and/or `ftp_proxy` documented above.
For example for an unauthenticated HTTP proxy:
export http_proxy=http://<host>:<port> export http_proxy=http://<host>:<port>

View File

@ -67,7 +67,7 @@ then
FILTERED_ENV=() FILTERED_ENV=()
# Filter all but the specific variables. # Filter all but the specific variables.
for VAR in HOME SHELL PATH TERM LOGNAME USER CI TRAVIS SSH_AUTH_SOCK SUDO_ASKPASS \ for VAR in HOME SHELL PATH TERM LOGNAME USER CI TRAVIS SSH_AUTH_SOCK SUDO_ASKPASS \
http_proxy https_proxy ftp_proxy HTTPS_PROXY FTP_PROXY \ http_proxy https_proxy ftp_proxy no_proxy HTTPS_PROXY FTP_PROXY \
"${!HOMEBREW_@}" "${!TRAVIS_@}" "${!JENKINS_@}" "${!HOMEBREW_@}" "${!TRAVIS_@}" "${!JENKINS_@}"
do do
# Skip if variable value is empty. # Skip if variable value is empty.

View File

@ -1096,8 +1096,14 @@ can take several different forms:
Sets the FTP proxy to be used by `curl`, `git` and `svn` when downloading Sets the FTP proxy to be used by `curl`, `git` and `svn` when downloading
through Homebrew. through Homebrew.
* `no_proxy`:
Sets the comma-separated list of hostnames and domain names that should be excluded from proxying
by `curl`, `git` and `svn` when downloading through Homebrew.
## USING HOMEBREW BEHIND A PROXY ## USING HOMEBREW BEHIND A PROXY
Use the `http_proxy`, `https_proxy` and/or `ftp_proxy` documented above. For example for an unauthenticated HTTP proxy: Use the `http_proxy`, `https_proxy`, `no_proxy` and/or `ftp_proxy` documented above.
For example for an unauthenticated HTTP proxy:
export http_proxy=http://`host`:`port` export http_proxy=http://`host`:`port`

View File

@ -1120,8 +1120,15 @@ Sets the HTTPS proxy to be used by \fBcurl\fR, \fBgit\fR and \fBsvn\fR when down
\fBftp_proxy\fR \fBftp_proxy\fR
Sets the FTP proxy to be used by \fBcurl\fR, \fBgit\fR and \fBsvn\fR when downloading through Homebrew\. Sets the FTP proxy to be used by \fBcurl\fR, \fBgit\fR and \fBsvn\fR when downloading through Homebrew\.
. .
.TP
\fBno_proxy\fR
Sets the comma\-separated list of hostnames and domain names that should be excluded from proxying by \fBcurl\fR, \fBgit\fR and \fBsvn\fR when downloading through Homebrew\.
.
.SH "USING HOMEBREW BEHIND A PROXY" .SH "USING HOMEBREW BEHIND A PROXY"
Use the \fBhttp_proxy\fR, \fBhttps_proxy\fR and/or \fBftp_proxy\fR documented above\. For example for an unauthenticated HTTP proxy: Use the \fBhttp_proxy\fR, \fBhttps_proxy\fR, \fBno_proxy\fR and/or \fBftp_proxy\fR documented above\.
.
.P
For example for an unauthenticated HTTP proxy:
. .
.IP "" 4 .IP "" 4
. .