mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-02-02 17:48:52 +00:00
Check for existence of wildcard blocking list before trying to acces it
This commit is contained in:
parent
a97f0b1298
commit
dce3e50a00
1 changed files with 13 additions and 11 deletions
2
pihole
2
pihole
|
@ -128,6 +128,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})
|
||||||
|
@ -139,6 +140,7 @@ queryFunc() {
|
||||||
echo ""
|
echo ""
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue