Check for existence of wildcard blocking list before trying to acces it
This commit is contained in:
2
pihole
2
pihole
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user