fix: correct DNS prompt range from [1-12] to [1-13]

The prompt incorrectly showed [1-12] when option 13 (Custom DNS) is valid.
This commit is contained in:
Stanislas Lange
2025-12-04 18:07:09 +01:00
committed by Stanislas
parent 74dcf67844
commit 1c5381cc03

View File

@@ -371,7 +371,7 @@ function installQuestions() {
echo " 12) NextDNS (Anycast: worldwide)"
echo " 13) Custom"
until [[ $DNS =~ ^[0-9]+$ ]] && [ "$DNS" -ge 1 ] && [ "$DNS" -le 13 ]; do
read -rp "DNS [1-12]: " -e -i 11 DNS
read -rp "DNS [1-13]: " -e -i 11 DNS
if [[ $DNS == 2 ]] && [[ -e /etc/unbound/unbound.conf ]]; then
echo ""
echo "Unbound is already installed."