mirror of
https://github.com/openoms/bitcoin-tutorials.git
synced 2025-12-18 12:34:20 +01:00
9 lines
169 B
Bash
9 lines
169 B
Bash
#!/bin/bash
|
|
|
|
hidden_service="xxxxxxxxxx.onion"
|
|
port=80
|
|
if ! torsocks nc -zv ${hidden_service} ${port}; then
|
|
echo "restart Tor"
|
|
sudo systemctl restart tor@default
|
|
fi
|