fix: finally a reliable option to set proxy or not..

This commit is contained in:
piecka 2025-03-25 09:25:31 +01:00
parent 78d44ea65a
commit f7019152eb

View file

@ -39,3 +39,9 @@ proxy() {
noproxy() {
unset {HTTP_PROXY,HTTPS_PROXY,http_proxy,https_proxy}
}
if ping -w2 -q swu.dom; then
proxy
else
noproxy
fi