torch-subscriber-docker/tor/svc-hostname

11 lines
227 B
Plaintext
Raw Permalink Normal View History

#!/bin/sh
while ! curl -s -N --socks5 127.0.0.1:9050 'https://check.torproject.org/' | grep -qm1 Congratulations
do
sleep 0.5
done
echo "*****"
echo "* Service Onion Hostname: $(cat /var/lib/tor/svc/hostname)"
echo "*****"