mirror of
				https://github.com/angristan/openvpn-install.git
				synced 2025-10-31 05:57:36 +01:00 
			
		
		
		
	Custom DNS option wrong value fix (#559)
Custom DNS option wrong value fix
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 xPakrikx
					xPakrikx