From c1a46656e9f9844e91296ad525cd95b4083c35a3 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 6 Jan 2016 12:22:56 +0000 Subject: [PATCH] voip port for onion only installs --- src/freedombone | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/freedombone b/src/freedombone index 8cef98f3..be05f061 100755 --- a/src/freedombone +++ b/src/freedombone @@ -9501,12 +9501,13 @@ function install_voip { sed -i 's|#imagemessagelength=.*|imagemessagelength=131072|g' /etc/mumble-server.ini sed -i 's|#allowhtml=.*|allowhtml=False|g' /etc/mumble-server.ini sed -i 's|allowhtml=.*|allowhtml=False|g' /etc/mumble-server.ini + sed -i "s|port=.*|port=${VOIP_PORT}|g" /etc/mumble-server.ini - VOIP_ONION_HOSTNAME=$(add_onion_service voip ${VOIP_PORT} ${VOIP_ONION_PORT}) + VOIP_ONION_HOSTNAME= if [[ $ONION_ONLY != "no" ]]; then - sed -i "s|port=.*|port=${VOIP_ONION_PORT}|g" /etc/mumble-server.ini + VOIP_ONION_HOSTNAME=$(add_onion_service voip ${VOIP_PORT} ${VOIP_PORT}) else - sed -i "s|port=.*|port=${VOIP_PORT}|g" /etc/mumble-server.ini + VOIP_ONION_HOSTNAME=$(add_onion_service voip ${VOIP_PORT} ${VOIP_ONION_PORT}) fi if ! grep -q $"VoIP onion domain" $COMPLETION_FILE; then echo "VoIP onion domain:$VOIP_ONION_HOSTNAME" >> $COMPLETION_FILE