Update CDN / Download Hosts

This commit is contained in:
SukkaW
2024-02-01 17:13:00 +08:00
parent 06dee8313c
commit 252df571aa
5 changed files with 114 additions and 4 deletions

View File

@@ -10,7 +10,7 @@ export const parseFelixDnsmasq = async (url: string | URL): Promise<string[]> =>
const res: string[] = [];
for await (const line of await fetchRemoteTextByLine(url)) {
if (line.startsWith('server=/') && line.endsWith('/114.114.114.114')) {
const domain = line.replace('server=/', '').replace('/114.114.114.114', '');
const domain = line.slice(8, -16);
if (isDomainLoose(domain)) {
res.push(domain);
}