mirror of
https://github.com/pi-hole/pi-hole
synced 2024-11-18 14:18:15 +00:00
Only remove from wildcard list if domain is being added to whitelist or blacklist
This commit is contained in:
parent
be0b76c954
commit
6b862dd9e9
@ -84,7 +84,9 @@ PoplistFile() {
|
||||
if ${addmode}; then
|
||||
AddDomain "${dom}" "${listMain}"
|
||||
RemoveDomain "${dom}" "${listAlt}"
|
||||
RemoveDomain "${dom}" "${wildcardlist}"
|
||||
if [[ "${listMain}" == "${whitelist}" || "${listMain}" == "${blacklist}" ]]; then
|
||||
RemoveDomain "${dom}" "${wildcardlist}"
|
||||
fi
|
||||
else
|
||||
RemoveDomain "${dom}" "${listMain}"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user