+
This commit is contained in:
parent
09a803e156
commit
c47b6452b3
7 changed files with 20 additions and 8 deletions
|
@ -21,10 +21,16 @@ restartTor() {
|
|||
sudo systemctl restart tor && notify-send "Tor restarting" || notify-send "Tor failed to restart"
|
||||
}
|
||||
|
||||
checkIP() {
|
||||
curl --socks5-hostname localhost:9050 -s https://check.torproject.org | grep "IP" | cut -d'>' -f3 | cut -d'<' -f1
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
-t ) $(toggle) ;;
|
||||
-c ) checkWeb ;;
|
||||
-r ) restartTor ;;
|
||||
-n ) checkNotif ;;
|
||||
-l ) echo "$(pidof tor | wc -l)" ;;
|
||||
--check-ip ) checkIP ;;
|
||||
* ) check ;;
|
||||
esac
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue