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:
parent
eb63e75379
commit
6cd3c93472
3
pihole
3
pihole
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user