diff --git a/src/freedombone-utils-onion b/src/freedombone-utils-onion index 3f98ae7f..d7ff5998 100755 --- a/src/freedombone-utils-onion +++ b/src/freedombone-utils-onion @@ -253,6 +253,10 @@ function configure_ssh_onion { fi SSH_ONION_HOSTNAME=$(add_onion_service ssh ${SSH_PORT} ${SSH_PORT}) + if [[ "$SSH_ONION_HOSTNAME" != *'.onion' ]]; then + echo $'ssh onion site not generated' + exit 624128 + fi set_completion_param "ssh onion domain" "${SSH_ONION_HOSTNAME}" add_email_hostname "${SSH_ONION_HOSTNAME}"