1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-12-22 23:08:07 +00:00

Also query white- and blacklist

This commit is contained in:
DL6ER 2016-12-05 17:09:49 +01:00
parent eb63e75379
commit 6cd3c93472

3
pihole
View File

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