1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-11-18 06:08:21 +00:00

Added Default State for New DNS Options

Added default state of off for 3 new DNS options to better match existing code
This commit is contained in:
slamanna212 2016-02-15 17:54:17 -05:00
parent 06444c1c27
commit 94600c54cb

View File

@ -302,7 +302,10 @@ setStaticIPv4() {
setDNS(){ setDNS(){
DNSChoseCmd=(whiptail --separate-output --radiolist "Select Upstream DNS Provider" $r $c 2) DNSChoseCmd=(whiptail --separate-output --radiolist "Select Upstream DNS Provider" $r $c 2)
DNSChooseOptions=(Google "" on DNSChooseOptions=(Google "" on
OpenDNS "" off) OpenDNS "" off
Level3 "" off
Norton "" off
Comodo "" off)
DNSchoices=$("${DNSChoseCmd[@]}" "${DNSChooseOptions[@]}" 2>&1 >/dev/tty) DNSchoices=$("${DNSChoseCmd[@]}" "${DNSChooseOptions[@]}" 2>&1 >/dev/tty)
if [[ $? = 0 ]];then if [[ $? = 0 ]];then
case $DNSchoices in case $DNSchoices in