From f747548e6307cf75eac9f46501c28a972edd0526 Mon Sep 17 00:00:00 2001 From: kexkey Date: Tue, 18 May 2021 14:24:38 -0400 Subject: [PATCH] Changed how to check if Tor is working --- cyphernodeconf_docker/templates/installer/testfeatures.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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