fix: allowlist parent domain unblocks subdomains #74

Merged
razvandimescu merged 5 commits from fix/allowlist-parent-unblocks into main 2026-04-11 02:43:41 +08:00
Showing only changes of commit e5c6caba1f - Show all commits

View File

@@ -175,8 +175,7 @@ impl BlocklistStore {
pub fn add_to_allowlist(&mut self, domain: &str) { pub fn add_to_allowlist(&mut self, domain: &str) {
let d = domain.to_lowercase(); let d = domain.to_lowercase();
self.allowlist self.allowlist.insert(d.trim_end_matches('.').to_string());
.insert(d.trim_end_matches('.').to_string());
} }
pub fn remove_from_allowlist(&mut self, domain: &str) -> bool { pub fn remove_from_allowlist(&mut self, domain: &str) -> bool {