Update Reject & Download Hosts

This commit is contained in:
SukkaW 2024-01-03 12:03:18 +08:00
parent 6ac8a09655
commit 250a436207
4 changed files with 16 additions and 7 deletions

View File

@ -68,10 +68,10 @@ export const buildRejectDomainSet = task(import.meta.path, async () => {
purePhishingDomains.forEach(suffix => domainSets.add(`.${suffix}`)); purePhishingDomains.forEach(suffix => domainSets.add(`.${suffix}`));
}), }),
(async () => { (async () => {
for await (const line of readFileByLine(path.resolve(import.meta.dir, '../Source/domainset/reject_sukka.conf'))) { for await (const l of readFileByLine(path.resolve(import.meta.dir, '../Source/domainset/reject_sukka.conf'))) {
const l = processLine(line); const line = processLine(l);
if (l) { if (line) {
domainSets.add(l); domainSets.add(line);
} }
} }
})() })()

View File

@ -25,7 +25,7 @@ export function processDomainLists(domainListsUrl: string, includeAllSubDomain =
if (!domainToAdd) continue; if (!domainToAdd) continue;
if (DEBUG_DOMAIN_TO_FIND && domainToAdd.includes(DEBUG_DOMAIN_TO_FIND)) { if (DEBUG_DOMAIN_TO_FIND && domainToAdd.includes(DEBUG_DOMAIN_TO_FIND)) {
console.warn(picocolors.red(domainListsUrl), '(black)', picocolors.bold(DEBUG_DOMAIN_TO_FIND)); console.warn(picocolors.red(domainListsUrl), '(black)', domainToAdd.replaceAll(DEBUG_DOMAIN_TO_FIND, picocolors.bold(DEBUG_DOMAIN_TO_FIND)));
foundDebugDomain = true; foundDebugDomain = true;
} }
@ -61,7 +61,7 @@ export function processHosts(hostsUrl: string, includeAllSubDomain = false, skip
const _domain = domain.trim(); const _domain = domain.trim();
if (DEBUG_DOMAIN_TO_FIND && _domain.includes(DEBUG_DOMAIN_TO_FIND)) { if (DEBUG_DOMAIN_TO_FIND && _domain.includes(DEBUG_DOMAIN_TO_FIND)) {
console.warn(picocolors.red(hostsUrl), '(black)', picocolors.bold(DEBUG_DOMAIN_TO_FIND)); console.warn(picocolors.red(hostsUrl), '(black)', _domain.replaceAll(DEBUG_DOMAIN_TO_FIND, picocolors.bold(DEBUG_DOMAIN_TO_FIND)));
foundDebugDomain = true; foundDebugDomain = true;
} }
@ -131,7 +131,7 @@ export async function processFilterRules(
flag === ParseType.WhiteIncludeSubdomain || flag === ParseType.WhiteAbsolute flag === ParseType.WhiteIncludeSubdomain || flag === ParseType.WhiteAbsolute
? '(white)' ? '(white)'
: '(black)', : '(black)',
picocolors.bold(DEBUG_DOMAIN_TO_FIND) hostname.replaceAll(DEBUG_DOMAIN_TO_FIND, picocolors.bold(DEBUG_DOMAIN_TO_FIND))
); );
foundDebugDomain = true; foundDebugDomain = true;
} }

View File

@ -198,3 +198,5 @@ DOMAIN-SUFFIX,steamcontent.com
DOMAIN-SUFFIX,download.epicgames.com DOMAIN-SUFFIX,download.epicgames.com
# MikroTik # MikroTik
DOMAIN,download.mikrotik.com DOMAIN,download.mikrotik.com
# ToDesktop
download.todesktop.com

View File

@ -785,6 +785,13 @@ mobile.events.data.microsoft.com
.vortex.data.msn.com .vortex.data.msn.com
watson.telemetry.microsoft.com watson.telemetry.microsoft.com
events.data.microsoft.com
v10.events.data.microsoft.com
v20.events.data.microsoft.com
self.events.data.microsoft.com
functional.events.data.microsoft.com
mobile.events.data.microsoft.com
umwatsonc.telemetry.microsoft.com umwatsonc.telemetry.microsoft.com
umwatsonc.events.data.microsoft.com umwatsonc.events.data.microsoft.com
vortex-win-sandbox.data.microsoft.com vortex-win-sandbox.data.microsoft.com