mirror of
https://github.com/pi-hole/pi-hole
synced 2024-12-23 07:18:07 +00:00
Merge pull request #1456 from WaLLy3K/patch-3
Update queryFunc() to search Whitelist
This commit is contained in:
commit
e23c6899e0
6
pihole
6
pihole
@ -106,12 +106,12 @@ queryFunc() {
|
|||||||
domain="${2}"
|
domain="${2}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Scan Blacklist and Wildcards
|
# Scan Whitelist, Blacklist and Wildcards
|
||||||
lists="/etc/pihole/blacklist.txt $wildcardlist"
|
lists="/etc/pihole/whitelist.txt /etc/pihole/blacklist.txt $wildcardlist"
|
||||||
result=$(scanList ${domain} "${lists}" ${method})
|
result=$(scanList ${domain} "${lists}" ${method})
|
||||||
if [ -n "$result" ]; then
|
if [ -n "$result" ]; then
|
||||||
echo "$result"
|
echo "$result"
|
||||||
exit 0
|
[[ ! -t 1 ]] && exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Scan Domains lists
|
# Scan Domains lists
|
||||||
|
Loading…
Reference in New Issue
Block a user