diff options
author | Jesús <heckyel@hyperbola.info> | 2021-07-28 20:26:42 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-07-28 20:27:02 -0500 |
commit | 9b83fa093e869af425cbf6d99829a40156b4bd6a (patch) | |
tree | 4ee97a9073a4e106488e25b0cbe9426259b355bf /core/entrypoint.sh | |
parent | fade4534246627375a2c7fe11fdb0843ccb449e1 (diff) | |
download | yt-local-docker-9b83fa093e869af425cbf6d99829a40156b4bd6a.tar.lz yt-local-docker-9b83fa093e869af425cbf6d99829a40156b4bd6a.tar.xz yt-local-docker-9b83fa093e869af425cbf6d99829a40156b4bd6a.zip |
minor fix
change localhost:9050 to "localhost:${TOR_PORT:-9050}"
Diffstat (limited to 'core/entrypoint.sh')
-rw-r--r-- | core/entrypoint.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/entrypoint.sh b/core/entrypoint.sh index 47c4dd1..ff717a9 100644 --- a/core/entrypoint.sh +++ b/core/entrypoint.sh @@ -90,7 +90,7 @@ EOF # check health tor 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 pkill tor && tor -f /etc/tor/torrc --runasdaemon 0 2>&1 pkill python3 && /usr/bin/python3 /srv/app/server.py |