mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-01-11 14:34:44 +00:00
Also query white- and blacklist
This commit is contained in:
parent
eb63e75379
commit
6cd3c93472
1 changed files with 2 additions and 1 deletions
3
pihole
3
pihole
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue