We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cb152a commit c07e4d3Copy full SHA for c07e4d3
apt-proxy-detect.sh
@@ -123,11 +123,12 @@ then
123
else
124
debug "CACHE" "using stored under: ${cache_file}"
125
fi
126
+
127
cache_age=$(( now - ${CACHED_PROXIES_AGE[${testurl_hash}]:=0} ))
- debug "CACHE-AGE" "age: ${cache_age} sec"
128
proxy="${CACHED_PROXIES[${testurl_hash}]}"
129
if [ -n "${proxy}" ]
130
then
131
+ debug "CACHE-AGE" "age: ${cache_age} sec"
132
if check_proxy "${proxy}" "${testurl}"
133
134
debug "WORKS" "give back cached proxy"
0 commit comments