Enable trie hostname mode & extend hostname mode test cases

This commit is contained in:
SukkaW
2024-05-27 01:56:08 +08:00
parent d137bdb8a3
commit eb0623c1a9
5 changed files with 110 additions and 31 deletions

View File

@@ -75,7 +75,7 @@ export const parseGfwList = async () => {
})).text();
const topDomains = parse(res);
const trie = createTrie(blackSet);
const trie = createTrie(blackSet, true);
for await (const [domain] of topDomains) {
if (trie.has(domain)) {