iankelling.org
/
git
/
distro-setup
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7bb80db
)
fix proxy detect for no host prog yet
author
Ian Kelling
<ian@iankelling.org>
Fri, 28 Oct 2016 15:14:28 +0000
(08:14 -0700)
committer
Ian Kelling
<ian@iankelling.org>
Fri, 28 Oct 2016 15:14:28 +0000
(08:14 -0700)
filesystem/etc/apt/detect-http-proxy
patch
|
blob
|
history
diff --git
a/filesystem/etc/apt/detect-http-proxy
b/filesystem/etc/apt/detect-http-proxy
index 2e4a962119c8206ff78b9f157bcafe5598dcbee5..b5d502dbf4c844c1309968304da8e39802ed2b95 100755
(executable)
--- 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