diff --git a/src/freedombone-app-xmpp b/src/freedombone-app-xmpp index 0a853c4d..8ced2f1a 100755 --- a/src/freedombone-app-xmpp +++ b/src/freedombone-app-xmpp @@ -586,6 +586,7 @@ function remove_xmpp { function_check remove_onion_service remove_onion_service xmpp 5222 5223 5269 + sed -i '/HiddenServiceVersion 2/d' /etc/tor/torrc apt-get -yq remove --purge prosody rm /etc/cron.daily/prosody @@ -1029,6 +1030,7 @@ function install_xmpp { fi if ! grep -q "hidden_service_xmpp" /etc/tor/torrc; then echo 'HiddenServiceDir /var/lib/tor/hidden_service_xmpp/' >> /etc/tor/torrc + echo 'HiddenServiceVersion 2' >> /etc/tor/torrc echo "HiddenServicePort 5222 127.0.0.1:5222" >> /etc/tor/torrc echo "HiddenServicePort 5269 127.0.0.1:5269" >> /etc/tor/torrc echo $'Added onion site for xmpp chat'