diff --git a/src/freedombone b/src/freedombone index 44239a37..d8416e6a 100755 --- a/src/freedombone +++ b/src/freedombone @@ -1294,6 +1294,12 @@ function add_onion_service { onion_service_name="$1" onion_service_port_from=$2 onion_service_port_to=$3 + + if [ -f /var/lib/tor/hidden_service_${onion_service_name}/hostname ]; then + echo $(cat /var/lib/tor/hidden_service_${onion_service_name}/hostname) + return + fi + if [ ! -d /var/lib/tor ]; then echo $"No Tor installation found. ${onion_service_name} onion site cannot be configured." exit 877367