1
0
mirror of https://github.com/pi-hole/pi-hole synced 2025-01-03 04:30:55 +00:00

Only looking for blocking entries (do not scan whitelist.txt)

This commit is contained in:
DL6ER 2016-12-05 17:12:28 +01:00
parent 6cd3c93472
commit 74cb79252c

2
pihole
View File

@ -69,7 +69,7 @@ setupLCDFunction() {
queryFunc() { queryFunc() {
domain="${2}" domain="${2}"
lists=( /etc/pihole/list.* /etc/pihole/whitelist.txt /etc/pihole/blacklist.txt) lists=( /etc/pihole/list.* /etc/pihole/blacklist.txt)
for list in ${lists[@]}; do for list in ${lists[@]}; do
count=$(grep -c ${domain} $list) count=$(grep -c ${domain} $list)
echo "::: ${list} (${count} results)" echo "::: ${list} (${count} results)"