From 2a175a901209c8e99697a22d98291137bfbe09a2 Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Fri, 28 Oct 2016 08:14:28 -0700 Subject: [PATCH] fix proxy detect for no host prog yet --- filesystem/etc/apt/detect-http-proxy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2