Merge pull request #1302 from pi-hole/fix/nowildcardlistfile

Check for existence of wildcard blocking list (query adlists)
This commit is contained in:
DL6ER 2017-03-06 17:03:34 +01:00 committed by GitHub
commit af17355fe7

2
pihole
View file

@ -128,6 +128,7 @@ queryFunc() {
done
# Scan for possible wildcard matches
if [ -e "${wildcardlist}" ]; then
local wildcards=($(processWildcards "${domain}"))
for domain in ${wildcards[@]}; do
result=$(scanList "\/${domain}\/" ${wildcardlist})
@ -139,6 +140,7 @@ queryFunc() {
echo ""
fi
done
fi
exit 0
}