fix proxy detect for no host prog yet
[distro-setup] / 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