diff --git a/src/freedombone-app-mumble b/src/freedombone-app-mumble index 34f43a76..42901bc6 100755 --- a/src/freedombone-app-mumble +++ b/src/freedombone-app-mumble @@ -143,10 +143,12 @@ function remove_mumble { fi fi apt-get -y remove --purge mumble-server - iptables -D INPUT -p udp --dport $VOIP_PORT -j ACCEPT - iptables -D INPUT -p tcp --dport $VOIP_PORT -j ACCEPT - function_check save_firewall_settings - save_firewall_settings + if [[ $ONION_ONLY == "no" ]]; then + iptables -D INPUT -p udp --dport $VOIP_PORT -j ACCEPT + iptables -D INPUT -p tcp --dport $VOIP_PORT -j ACCEPT + function_check save_firewall_settings + save_firewall_settings + fi if [ -f /etc/mumble-server.ini ]; then rm /etc/mumble-server.ini fi