ask Tor ofor Sphinx

This commit is contained in:
rootzoll 2021-09-20 18:56:17 +02:00
parent d996b18dba
commit a90959d89b

View File

@ -40,6 +40,24 @@ if [ "$1" = "menu" ]; then
fi
fi
# ask if user wants to use tor
if [ ${connection} = "localnetwork" ] && [ "${sphinxrelay_connection}" == "" ]; then
whiptail --title " Connect over Tor " \
--yes-button "Use Tor" \
--no-button "Other Pptions" \
--yesno "You can connect Sphinx App over Tor. Its build in for iOS and on Android you need to use it together with the Orbot App." 14 72
if [ "$?" != "1" ]; then
echo "1"
else
echo "0"
fi
exit
elif [ "${sphinxrelay_connection}" == "tor" ]; then
dialog --title " Tor Info " --msgbox "\nYou are using Sphinx App over Tor. If you want to try other options you need to deinstall & reinstall the Sphinx Relay." 10 40
fi
extraPairInfo=""
text="Go to https://sphinx.chat and download the Sphinx Chat app."
@ -72,6 +90,12 @@ MAINMENU > SUBSCRIBE & add LetsEncrypt HTTPS Domain"
Public Domain: ${publicURL}
port forwarding on router needs to be active & may change port"
# When Tor
elif [ ${connection} = "tor" ]; then
text="${text}\n
Tor Connection: ${publicURL}
iOS support is native, Android needs Orbot"
# When nothing advise
elif [ ${connection} = "localnetwork" ]; then
text="${text}\n