fix proxy detect for no host prog yet
authorIan Kelling <ian@iankelling.org>
Fri, 28 Oct 2016 15:14:28 +0000 (08:14 -0700)
committerIan Kelling <ian@iankelling.org>
Fri, 28 Oct 2016 15:14:28 +0000 (08:14 -0700)
filesystem/etc/apt/detect-http-proxy

index 2e4a962119c8206ff78b9f157bcafe5598dcbee5..b5d502dbf4c844c1309968304da8e39802ed2b95 100755 (executable)
@@ -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