diff --git a/cyphernodeconf_docker/templates/installer/testfeatures.sh b/cyphernodeconf_docker/templates/installer/testfeatures.sh index 5831922..65acf02 100644 --- a/cyphernodeconf_docker/templates/installer/testfeatures.sh +++ b/cyphernodeconf_docker/templates/installer/testfeatures.sh @@ -128,9 +128,8 @@ checktor() { echo -en "\r\n\e[1;36mTesting Tor... " > /dev/console local rc - # Testing with onion.torproject.org hidden service. - rc=$(curl -s -o /dev/null -w "%{http_code}" --socks5-hostname tor:9050 http://yz7lpwfhhzcdyc5y.onion/) - [ "${rc}" -ne "200" ] && return 250 + curl -s --socks5-hostname tor:9050 https://check.torproject.org/ | cat | grep -qm 1 Congratulations + [ "$?" -ne "0" ] && return 250 echo -e "\e[1;36mTor rocks!" > /dev/console