Chore: minor changes
Some checks failed
Build / Build (push) Has been cancelled
Build / Diff output (push) Has been cancelled
Build / Deploy to Cloudflare Pages (3.114.9) (push) Has been cancelled
Build / Deploy to GitHub and GitLab (push) Has been cancelled

This commit is contained in:
SukkaW
2025-06-18 22:19:59 +08:00
parent b081534692
commit f6abcc2e01
3 changed files with 8 additions and 19 deletions

View File

@@ -2,7 +2,6 @@ import { createReadlineInterfaceFromResponse } from './fetch-text-by-line';
import type { UndiciResponseData } from './fetch-retry';
import type { Response } from 'undici';
import { fastNormalizeDomain } from './normalize-domain';
export function extractDomainsFromFelixDnsmasq(line: string): string | null {
if (line.startsWith('server=/') && line.endsWith('/114.114.114.114')) {
@@ -16,7 +15,7 @@ export async function parseFelixDnsmasqFromResp(resp: UndiciResponseData | Respo
for await (const line of createReadlineInterfaceFromResponse(resp, true)) {
const domain = extractDomainsFromFelixDnsmasq(line);
if (domain && fastNormalizeDomain(domain)) {
if (domain) {
results.push(domain);
}
}