Chore: refine reject domainset building

This commit is contained in:
SukkaW
2024-01-28 16:30:29 +08:00
parent f51de780f5
commit c95e96fc61
10 changed files with 186 additions and 145 deletions

View File

@@ -33,7 +33,7 @@ export const getMicrosoftCdnRulesetPromise = createMemoizedPromise(async () => {
trie.add(domain);
}
}
return new Set(PROBE_DOMAINS.flatMap(domain => trie.find(domain, false)));
return new Set(PROBE_DOMAINS.flatMap(domain => trie.find(domain)));
});
// Second trie is to remove blacklisted domains