From 3536b50552c3ac66f464a2d7d524232707ba2f44 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 2 Feb 2018 12:55:11 +0000 Subject: [PATCH] Remove the hidden service version line when removing onion addresses --- src/freedombone-utils-onion | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/freedombone-utils-onion b/src/freedombone-utils-onion index 0bd4953b..7f141875 100755 --- a/src/freedombone-utils-onion +++ b/src/freedombone-utils-onion @@ -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