minor fix
change localhost:9050 to "localhost:${TOR_PORT:-9050}"
This commit is contained in:
parent
fade453424
commit
9b83fa093e
@ -90,7 +90,7 @@ EOF
|
|||||||
|
|
||||||
# check health tor
|
# check health tor
|
||||||
while :; do
|
while :; do
|
||||||
checkurl=$(curl --socks5 localhost:9050 -o /dev/null -s -w "%{http_code}\n" "${URL_CHECK:-https://www.youtube.com/results?search_query=rms}")
|
checkurl=$(curl --socks5 "localhost:${TOR_PORT:-9050}" -o /dev/null -s -w "%{http_code}\n" "${URL_CHECK:-https://www.youtube.com/results?search_query=rms}")
|
||||||
if [ "$checkurl" = '502' ] || [ "$checkurl" = '302' ]; then
|
if [ "$checkurl" = '502' ] || [ "$checkurl" = '302' ]; then
|
||||||
pkill tor && tor -f /etc/tor/torrc --runasdaemon 0 2>&1
|
pkill tor && tor -f /etc/tor/torrc --runasdaemon 0 2>&1
|
||||||
pkill python3 && /usr/bin/python3 /srv/app/server.py
|
pkill python3 && /usr/bin/python3 /srv/app/server.py
|
||||||
|
Loading…
x
Reference in New Issue
Block a user