checkremotecerts.sh: torify was recently deprecated and now is just an alias pointing to

torsocks, so let's use torsocks directly
This commit is contained in:
kytv
2014-12-15 15:18:19 +00:00
parent 20facf78d0
commit 5e890bd781

View File

@ -21,10 +21,10 @@ check_for_prog() {
fi fi
} }
if pidof /usr/bin/tor > /dev/null 2>&1 && check_for_prog torify; then if pidof /usr/bin/tor > /dev/null 2>&1 && check_for_prog torsocks; then
echo "-- Detected Tor, will try using it --" echo "-- Detected Tor, will try using it --"
GNUTLS_BIN="torify gnutls-cli" GNUTLS_BIN="torsocks gnutls-cli"
OPENSSL_BIN="torify openssl" OPENSSL_BIN="torsocks openssl"
else else
GNUTLS_BIN="gnutls-cli" GNUTLS_BIN="gnutls-cli"
OPENSSL_BIN="openssl" OPENSSL_BIN="openssl"