Adds uppercase versions of env variables to proxy-on command
This commit is contained in:
parent
e113ed3992
commit
d2cf4c7f55
1 changed files with 7 additions and 3 deletions
|
@ -114,9 +114,13 @@ function proxy_on() {
|
|||
fi
|
||||
local proxy=$1
|
||||
export http_proxy="$proxy" \
|
||||
https_proxy=$proxy \
|
||||
ftp_proxy=$proxy \
|
||||
rsync_proxy=$proxy
|
||||
HTTP_PROXY="$proxy" \
|
||||
https_proxy="$proxy" \
|
||||
HTTPS_PROXY="$proxy" \
|
||||
ftp_proxy="$proxy" \
|
||||
FTP_PROXY="$proxy" \
|
||||
rsync_proxy="$proxy" \
|
||||
RSYNC_PROXY="$proxy"
|
||||
echo "Proxy environment variable set."
|
||||
return 0
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue