File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ _HTTP_PROXY=$(cat "${HOME}/.proxy/http_proxy")
2
2
_HTTPS_PROXY=$( cat " ${HOME} /.proxy/https_proxy" )
3
3
_FTP_PROXY=$( cat " ${HOME} /.proxy/ftp_proxy" )
4
4
_RSYNC_PROXY=$( cat " ${HOME} /.proxy/rsync_proxy" )
5
+ _ALL_PROXY=$( cat " ${HOME} /.proxy/all_proxy" )
5
6
_NO_PROXY=$( cat " ${HOME} /.proxy/no_proxy" )
6
7
7
8
enable_proxy () {
@@ -13,6 +14,8 @@ enable_proxy() {
13
14
export FTP_PROXY=" ${_FTP_PROXY} "
14
15
export rsync_proxy=" ${_RSYNC_PROXY} "
15
16
export RSYNC_PROXY=" ${_RSYNC_PROXY} "
17
+ export all_proxy=" ${_ALL_PROXY} "
18
+ export ALL_PROXY=" ${_ALL_PROXY} "
16
19
export no_proxy=" ${_NO_PROXY} "
17
20
export NO_PROXY=" ${_NO_PROXY} "
18
21
}
@@ -26,6 +29,8 @@ disable_proxy() {
26
29
unset FTP_PROXY
27
30
unset rsync_proxy
28
31
unset RSYNC_PROXY
32
+ unset all_proxy
33
+ unset ALL_PROXY
29
34
unset no_proxy
30
35
unset NO_PROXY
31
36
}
@@ -35,6 +40,7 @@ list_proxy() {
35
40
echo " HTTPS_PROXY=\" ${_HTTPS_PROXY} \" "
36
41
echo " FTP_PROXY=\" ${_FTP_PROXY} \" "
37
42
echo " RSYNC_PROXY=\" ${_RSYNC_PROXY} \" "
43
+ echo " ALL_PROXY=\" ${_ALL_PROXY} \" "
38
44
echo " NO_PROXY=\" ${_NO_PROXY} \" "
39
45
}
40
46
You can’t perform that action at this time.
0 commit comments