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 DL6ER
parent 0fe64cf5cc
commit de6aaf18ab
No known key found for this signature in database
GPG key ID: 00135ACBD90B28DD

2
pihole
View file

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