Removing stealth onions

This commit is contained in:
Bob Mottram 2017-03-07 15:12:34 +00:00
parent 64aa7eb944
commit 1d868312e0
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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