Remove the hidden service version line when removing onion addresses

This commit is contained in:
Bob Mottram 2018-02-02 12:55:11 +00:00
parent 346dfbb0cc
commit 3536b50552
1 changed files with 2 additions and 2 deletions

View File

@ -83,8 +83,8 @@ function remove_onion_service {
if [ ${#nick} -gt 0 ]; then
sed -i "/stealth ${nick}/d" /etc/tor/torrc
fi
sed -i "/hidden_service_${onion_service_name}/d" /etc/tor/torrc
sed -i "/hidden_service_${onion_service_name}_mobile/d" /etc/tor/torrc
sed -i "/hidden_service_${onion_service_name}/,+1 d" /etc/tor/torrc
sed -i "/hidden_service_${onion_service_name}_mobile/,+1 d" /etc/tor/torrc
sed -i "/127.0.0.1:${onion_service_port_to}/d" /etc/tor/torrc
if [ $3 ]; then
sed -i "/127.0.0.1:${3}/d" /etc/tor/torrc