1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-12-22 06:48: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() {
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)
echo "::: ${list} (${count} results)"
if [[ ${count} > 0 ]]; then