Switch xmpp to v3 onion addresses
This commit is contained in:
parent
2e7f9427f8
commit
5514550f48
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue