瀏覽代碼

Perf: improve bulkAddDomainSuffixes

SukkaW 1 年之前
父節點
當前提交
c9f72bee03
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Build/lib/rules/base.ts

+ 1 - 1
Build/lib/rules/base.ts

@@ -96,7 +96,7 @@ export class FileOutput {
   }
 
   addDomainSuffix(domain: string, lineFromDot = domain[0] === '.') {
-    this.domainTrie.add(domain, true, lineFromDot ? 1 : 0);
+    this.domainTrie.add(domain, true, null, lineFromDot ? 1 : 0);
     return this;
   }