Chore: housekeeping

This commit is contained in:
SukkaW
2024-04-16 11:06:00 +08:00
parent 9c6141659a
commit f9a0445cbf
9 changed files with 19 additions and 19 deletions

View File

@@ -14,7 +14,7 @@ const getBogusNxDomainIPsPromise = fsFetchCache.apply(
async () => {
const result: string[] = [];
for await (const line of await fetchRemoteTextByLine(URL)) {
if (line && line.startsWith('bogus-nxdomain=')) {
if (line.startsWith('bogus-nxdomain=')) {
const ip = line.slice(15).trim();
if (isProbablyIpv4(ip)) {
result.push(`IP-CIDR,${ip}/32,no-resolve`);