Merge pull request #1322 from pi-hole/FixWildCardBlacklisting

Only remove from wildcard list if domain is being added to whitelist …
This commit is contained in:
Mcat12 2017-03-13 17:50:18 -04:00 committed by GitHub
commit 88835512dd

View file

@ -84,7 +84,9 @@ PoplistFile() {
if ${addmode}; then
AddDomain "${dom}" "${listMain}"
RemoveDomain "${dom}" "${listAlt}"
if [[ "${listMain}" == "${whitelist}" || "${listMain}" == "${blacklist}" ]]; then
RemoveDomain "${dom}" "${wildcardlist}"
fi
else
RemoveDomain "${dom}" "${listMain}"
fi