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