mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-02-20 10:16:51 +00:00
Lint errors
This commit is contained in:
parent
d356adbcd5
commit
f91fc54f89
1 changed files with 3 additions and 2 deletions
|
@ -315,6 +315,7 @@ It is also possible to use a DHCP reservation, but if you are going to do that,
|
||||||
}
|
}
|
||||||
|
|
||||||
set_upstream_dns(){
|
set_upstream_dns(){
|
||||||
|
local DNSSettingsCorrect=False
|
||||||
DNSChoseCmd=(whiptail --separate-output --radiolist "Select Upstream DNS Provider. To use your own, select Custom." ${r} ${c} 6)
|
DNSChoseCmd=(whiptail --separate-output --radiolist "Select Upstream DNS Provider. To use your own, select Custom." ${r} ${c} 6)
|
||||||
DNSChooseOptions=(Google "" on
|
DNSChooseOptions=(Google "" on
|
||||||
OpenDNS "" off
|
OpenDNS "" off
|
||||||
|
@ -322,9 +323,9 @@ set_upstream_dns(){
|
||||||
Norton "" off
|
Norton "" off
|
||||||
Comodo "" off
|
Comodo "" off
|
||||||
Custom "" off)
|
Custom "" 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
|
||||||
Google)
|
Google)
|
||||||
echo "::: Using Google DNS servers."
|
echo "::: Using Google DNS servers."
|
||||||
piholeDNS1="8.8.8.8"
|
piholeDNS1="8.8.8.8"
|
||||||
|
|
Loading…
Add table
Reference in a new issue