mirror of
https://github.com/openoms/bitcoin-tutorials.git
synced 2025-12-19 04:54:18 +01:00
mixed additions
This commit is contained in:
8
tor/checkHiddenService.sh
Normal file
8
tor/checkHiddenService.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user