summaryrefslogtreecommitdiff
path: root/checkVersions
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-01-04 22:47:18 +0100
committerErich Eckner <git@eckner.net>2019-01-04 22:47:18 +0100
commit25fd123af37218304aab79f37231d1ee0ee4f21d (patch)
treeadf2f90dd4bebdc0d4b980c874f7328de2471df4 /checkVersions
parent2f48333679ab713d585717be4f0df91acebc2263 (diff)
downloadarchlinuxewe.git.save-25fd123af37218304aab79f37231d1ee0ee4f21d.tar.xz
checkVersions: use tor by default and direct connect as fallback
Diffstat (limited to 'checkVersions')
-rwxr-xr-xcheckVersions4
1 files changed, 2 insertions, 2 deletions
diff --git a/checkVersions b/checkVersions
index 835ae170..242901e8 100755
--- a/checkVersions
+++ b/checkVersions
@@ -30,9 +30,9 @@ curl_it() {
return
fi
tmp_file=$(mktemp)
- curl --compressed -o "${tmp_file}" --connect-timeout 10 -s "$@" "${source}"
+ curl --compressed -o "${tmp_file}" --connect-timeout 10 -s -x socks5://127.0.0.1:9050 "$@" "${source}"
if [ ! -s "${tmp_file}" ]; then
- curl --compressed -o "${tmp_file}" --connect-timeout 10 -s -x socks5://127.0.0.1:9050 "$@" "${source}"
+ curl --compressed -o "${tmp_file}" --connect-timeout 10 -s "$@" "${source}"
fi
local trials=5
while ! mv "${tmp_file}" "${cache_file}" && \