mirror of
https://github.com/pi-hole/pi-hole
synced 2025-01-03 04:30:55 +00:00
Only looking for blocking entries (do not scan whitelist.txt)
This commit is contained in:
parent
6cd3c93472
commit
74cb79252c
2
pihole
2
pihole
@ -69,7 +69,7 @@ setupLCDFunction() {
|
|||||||
|
|
||||||
queryFunc() {
|
queryFunc() {
|
||||||
domain="${2}"
|
domain="${2}"
|
||||||
lists=( /etc/pihole/list.* /etc/pihole/whitelist.txt /etc/pihole/blacklist.txt)
|
lists=( /etc/pihole/list.* /etc/pihole/blacklist.txt)
|
||||||
for list in ${lists[@]}; do
|
for list in ${lists[@]}; do
|
||||||
count=$(grep -c ${domain} $list)
|
count=$(grep -c ${domain} $list)
|
||||||
echo "::: ${list} (${count} results)"
|
echo "::: ${list} (${count} results)"
|
||||||
|
Loading…
Reference in New Issue
Block a user