diff --git a/openvpn-install.sh b/openvpn-install.sh index 4e7c2a1..0c63227 100755 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -296,7 +296,7 @@ function installQuestions () { echo " 11) AdGuard DNS (Russia)" echo " 12) NextDNS (Worldwide)" echo " 13) Custom" - until [[ "$DNS" =~ ^[0-9]+$ ]] && [ "$DNS" -ge 1 ] && [ "$DNS" -le 12 ]; do + until [[ "$DNS" =~ ^[0-9]+$ ]] && [ "$DNS" -ge 1 ] && [ "$DNS" -le 13 ]; do read -rp "DNS [1-12]: " -e -i 3 DNS if [[ $DNS == 2 ]] && [[ -e /etc/unbound/unbound.conf ]]; then echo "" @@ -314,7 +314,7 @@ function installQuestions () { unset DNS unset CONTINUE fi - elif [[ $DNS == "12" ]]; then + elif [[ $DNS == "13" ]]; then until [[ "$DNS1" =~ ^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$ ]]; do read -rp "Primary DNS: " -e DNS1 done