From: Ian Kelling Date: Fri, 28 Oct 2016 15:14:28 +0000 (-0700) Subject: fix proxy detect for no host prog yet X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=commitdiff_plain;h=2a175a901209c8e99697a22d98291137bfbe09a2 fix proxy detect for no host prog yet --- diff --git a/filesystem/etc/apt/detect-http-proxy b/filesystem/etc/apt/detect-http-proxy index 2e4a962..b5d502d 100755 --- a/filesystem/etc/apt/detect-http-proxy +++ b/filesystem/etc/apt/detect-http-proxy @@ -19,7 +19,7 @@ if [[ -r $f ]]; then rm $f fi fi -if host $proxy_host && nc -z $proxy_host $proxy_port; then +if getent hosts $proxy_host && nc -z $proxy_host $proxy_port; then echo $proxy_url else touch $f