浏览代码

Switch xmpp to v3 onion addresses

Bob Mottram 6 年前
父节点
当前提交
5514550f48
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      src/freedombone-app-xmpp

+ 2
- 2
src/freedombone-app-xmpp 查看文件

@@ -644,7 +644,7 @@ function remove_xmpp {
644 644
 
645 645
     function_check remove_onion_service
646 646
     remove_onion_service xmpp 5222 5223 5269
647
-    sed -i '/HiddenServiceVersion 2/d' "$ONION_SERVICES_FILE"
647
+    sed -i '/HiddenServiceVersion 3/d' "$ONION_SERVICES_FILE"
648 648
 
649 649
     apt-mark -q unhold prosody
650 650
     apt-get -yq remove --purge prosody
@@ -1133,7 +1133,7 @@ function install_xmpp {
1133 1133
     fi
1134 1134
     if ! grep -q "hidden_service_xmpp" "$ONION_SERVICES_FILE"; then
1135 1135
         { echo 'HiddenServiceDir /var/lib/tor/hidden_service_xmpp/';
1136
-          echo 'HiddenServiceVersion 2';
1136
+          echo 'HiddenServiceVersion 3';
1137 1137
           echo "HiddenServicePort 5222 127.0.0.1:5222";
1138 1138
           echo "HiddenServicePort 5269 127.0.0.1:5269"; } >> "$ONION_SERVICES_FILE"
1139 1139
         echo $'Added onion site for xmpp chat'