mirror of
https://github.com/SukkaW/Surge.git
synced 2026-02-04 04:42:32 +08:00
Refactor/Chore: prepare build infra for further optimization
This commit is contained in:
@@ -60,7 +60,7 @@ const BLACK_TLD = new Set([
|
||||
'com.cn'
|
||||
]);
|
||||
|
||||
runner(__filename, async () => {
|
||||
const buildPhishingDomainSet = async () => {
|
||||
const domainSet = Array.from((await processFilterRules('https://curbengh.github.io/phishing-filter/phishing-filter-agh.txt')).black);
|
||||
const domainCountMap = {};
|
||||
|
||||
@@ -151,4 +151,10 @@ runner(__filename, async () => {
|
||||
path.resolve(__dirname, '../List/domainset/reject_phishing.conf'),
|
||||
path.resolve(__dirname, '../Clash/domainset/reject_phishing.txt')
|
||||
));
|
||||
});
|
||||
};
|
||||
|
||||
module.exports.buildPhishingDomainSet = buildPhishingDomainSet;
|
||||
|
||||
if (require.main === module) {
|
||||
runner(__filename, buildPhishingDomainSet);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user