mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Update CDN / Download Hosts
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user