|
|
|
@ -510,9 +510,11 @@ gravity_ParseBlacklistDomains() {
|
|
|
|
|
|
|
|
|
|
if [[ -f "${piholeDir}/${whitelistMatter}" ]]; then
|
|
|
|
|
gravity_ParseDomainsIntoHosts "${piholeDir}/${whitelistMatter}" "${piholeDir}/${accretionDisc}"
|
|
|
|
|
grep -c "^" "${piholeDir}/${whitelistMatter}" > "${piholeDir}/numBlocked" 2> /dev/null
|
|
|
|
|
else
|
|
|
|
|
# There was no whitelist file, so use preEventHorizon instead of whitelistMatter.
|
|
|
|
|
gravity_ParseDomainsIntoHosts "${piholeDir}/${preEventHorizon}" "${piholeDir}/${accretionDisc}"
|
|
|
|
|
grep -c "^" "${piholeDir}/${preEventHorizon}" > "${piholeDir}/numBlocked" 2> /dev/null
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# Move the file over as /etc/pihole/gravity.list so dnsmasq can use it
|
|
|
|
|