1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-11-20 15:18:32 +00:00

Merge pull request #984 from pi-hole/Mcat12-auto-ipv6

Automatically enable IPv6
This commit is contained in:
Mcat12 2016-12-14 13:59:55 -05:00 committed by GitHub
commit 2ddacf40c0

View File

@ -297,7 +297,7 @@ use4andor6() {
# Let use select IPv4 and/or IPv6 # Let use select IPv4 and/or IPv6
cmd=(whiptail --separate-output --checklist "Select Protocols (press space to select)" ${r} ${c} 2) cmd=(whiptail --separate-output --checklist "Select Protocols (press space to select)" ${r} ${c} 2)
options=(IPv4 "Block ads over IPv4" on options=(IPv4 "Block ads over IPv4" on
IPv6 "Block ads over IPv6" off) IPv6 "Block ads over IPv6" on)
choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty) choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty)
if [[ $? = 0 ]];then if [[ $? = 0 ]];then
for choice in ${choices} for choice in ${choices}