mirror of
https://github.com/pi-hole/pi-hole
synced 2024-12-22 14:58:08 +00:00
Also query white- and blacklist
This commit is contained in:
parent
eb63e75379
commit
6cd3c93472
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 New Issue
Block a user