Merge pull request #1301 from pi-hole/fix/removewildcard

Remove wildcard entry when adding the very same domain either the white- or blacklist
This commit is contained in:
DL6ER 2017-03-06 23:53:06 +01:00 committed by DL6ER
parent de6aaf18ab
commit 6f8893d950
No known key found for this signature in database
GPG key ID: 00135ACBD90B28DD

View file

@ -84,6 +84,7 @@ PoplistFile() {
if ${addmode}; then if ${addmode}; then
AddDomain "${dom}" "${listMain}" AddDomain "${dom}" "${listMain}"
RemoveDomain "${dom}" "${listAlt}" RemoveDomain "${dom}" "${listAlt}"
RemoveDomain "${dom}" "${wildcardlist}"
else else
RemoveDomain "${dom}" "${listMain}" RemoveDomain "${dom}" "${listMain}"
fi fi