fix: finally a reliable option to set proxy or not..
This commit is contained in:
parent
78d44ea65a
commit
f7019152eb
1 changed files with 6 additions and 0 deletions
|
@ -39,3 +39,9 @@ proxy() {
|
||||||
noproxy() {
|
noproxy() {
|
||||||
unset {HTTP_PROXY,HTTPS_PROXY,http_proxy,https_proxy}
|
unset {HTTP_PROXY,HTTPS_PROXY,http_proxy,https_proxy}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ping -w2 -q swu.dom; then
|
||||||
|
proxy
|
||||||
|
else
|
||||||
|
noproxy
|
||||||
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue