Skip to content
Snippets Groups Projects
Commit 5514550f authored by Bob Mottram's avatar Bob Mottram
Browse files

Switch xmpp to v3 onion addresses

parent 2e7f9427
No related branches found
No related tags found
No related merge requests found
......@@ -644,7 +644,7 @@ function remove_xmpp {
function_check remove_onion_service
remove_onion_service xmpp 5222 5223 5269
sed -i '/HiddenServiceVersion 2/d' "$ONION_SERVICES_FILE"
sed -i '/HiddenServiceVersion 3/d' "$ONION_SERVICES_FILE"
apt-mark -q unhold prosody
apt-get -yq remove --purge prosody
......@@ -1133,7 +1133,7 @@ function install_xmpp {
fi
if ! grep -q "hidden_service_xmpp" "$ONION_SERVICES_FILE"; then
{ echo 'HiddenServiceDir /var/lib/tor/hidden_service_xmpp/';
echo 'HiddenServiceVersion 2';
echo 'HiddenServiceVersion 3';
echo "HiddenServicePort 5222 127.0.0.1:5222";
echo "HiddenServicePort 5269 127.0.0.1:5269"; } >> "$ONION_SERVICES_FILE"
echo $'Added onion site for xmpp chat'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment