Remove the hidden service version line when removing onion addresses
This commit is contained in:
parent
346dfbb0cc
commit
3536b50552
|
@ -83,8 +83,8 @@ function remove_onion_service {
|
||||||
if [ ${#nick} -gt 0 ]; then
|
if [ ${#nick} -gt 0 ]; then
|
||||||
sed -i "/stealth ${nick}/d" /etc/tor/torrc
|
sed -i "/stealth ${nick}/d" /etc/tor/torrc
|
||||||
fi
|
fi
|
||||||
sed -i "/hidden_service_${onion_service_name}/d" /etc/tor/torrc
|
sed -i "/hidden_service_${onion_service_name}/,+1 d" /etc/tor/torrc
|
||||||
sed -i "/hidden_service_${onion_service_name}_mobile/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
|
sed -i "/127.0.0.1:${onion_service_port_to}/d" /etc/tor/torrc
|
||||||
if [ $3 ]; then
|
if [ $3 ]; then
|
||||||
sed -i "/127.0.0.1:${3}/d" /etc/tor/torrc
|
sed -i "/127.0.0.1:${3}/d" /etc/tor/torrc
|
||||||
|
|
Loading…
Reference in New Issue