Stick with v2 onion addresses for xmpp
The prosody onions module probably will need changes to handle the v3 addresses
This commit is contained in:
parent
36f655af5f
commit
f0814c1b45
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue