Function to remove an onion service
This commit is contained in:
parent
e69717af61
commit
5281b96330
|
@ -54,6 +54,14 @@ function wait_for_onion_service {
|
|||
fi
|
||||
}
|
||||
|
||||
function remove_onion_service {
|
||||
onion_service_name="$1"
|
||||
onion_service_port_to=$2
|
||||
sed -i "/hidden_service_${onion_service_name}/d" /etc/tor/torrc
|
||||
sed -i "/127.0.0.1:${onion_service_port_to}/d" /etc/tor/torrc
|
||||
systemctl restart tor
|
||||
}
|
||||
|
||||
function add_onion_service {
|
||||
onion_service_name="$1"
|
||||
onion_service_port_from=$2
|
||||
|
|
Loading…
Reference in New Issue