From 25fd123af37218304aab79f37231d1ee0ee4f21d Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 4 Jan 2019 22:47:18 +0100 Subject: checkVersions: use tor by default and direct connect as fallback --- checkVersions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'checkVersions') 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}" && \ -- cgit v1.2.3-70-g09d2