mirror of
https://github.com/SukkaW/Surge.git
synced 2026-02-03 12:31:54 +08:00
Chore: update build tools & data source
This commit is contained in:
@@ -71,7 +71,7 @@ const BLACK_TLD = Array.from(new Set([
|
||||
const results = [];
|
||||
Object.entries(domainCountMap).forEach(([domain, count]) => {
|
||||
if (
|
||||
count >= 8
|
||||
count >= 5
|
||||
&& BLACK_TLD.some(tld => domain.endsWith(tld))
|
||||
) {
|
||||
results.push('.' + domain);
|
||||
@@ -79,5 +79,5 @@ const BLACK_TLD = Array.from(new Set([
|
||||
});
|
||||
|
||||
const filePath = path.resolve(__dirname, '../List/domainset/reject_phishing.conf');
|
||||
await fs.promises.writeFile(filePath, results.join('\n'), 'utf-8');
|
||||
await fs.promises.writeFile(filePath, results.join('\n') + '\n', 'utf-8');
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user