From f0814c1b45ffc47c6ea33e27e4f94042c4787942 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 29 Jan 2018 12:08:23 +0000 Subject: [PATCH] Stick with v2 onion addresses for xmpp The prosody onions module probably will need changes to handle the v3 addresses --- src/freedombone-app-xmpp | 2 ++ 1 file changed, 2 insertions(+) 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'