mirror of
https://github.com/aljazceru/cyphernode.git
synced 2025-12-30 11:05:40 +01:00
Changed how to check if Tor is working
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user