Removing stealth onions
This commit is contained in:
parent
64aa7eb944
commit
1d868312e0
|
@ -343,7 +343,7 @@ function remove_tahoelafs {
|
|||
remove_completion_param install_tahoelafs
|
||||
function_check remove_onion_service
|
||||
remove_onion_service tahoelafs ${TAHOELAFS_ONION_PORT}
|
||||
remove_onion_service storage-tahoelafs ${TAHOELAFS_STORAGE_ONION_PORT}
|
||||
remove_onion_service storage-tahoelafs ${TAHOELAFS_STORAGE_ONION_PORT} $(get_tahoelafs_nick)
|
||||
sed -i '/HidServAuth /d' /etc/tor/torrc
|
||||
deluser tahoelafs
|
||||
if [ -d /home/tahoelafs ]; then
|
||||
|
|
|
@ -82,8 +82,11 @@ function wait_for_onion_service {
|
|||
function remove_onion_service {
|
||||
onion_service_name="$1"
|
||||
onion_service_port_to=$2
|
||||
nick="$3"
|
||||
|
||||
#sed -i "/stealth ${onion_service_name}/d" /etc/tor/torrc
|
||||
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 "/127.0.0.1:${onion_service_port_to}/d" /etc/tor/torrc
|
||||
|
|
Loading…
Reference in New Issue