mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-13 09:40:34 +08:00
Fix: match all subdomains (a\d{1,4}.phobos.apple.com)
This commit is contained in:
parent
2e8de6b7f4
commit
59544333cd
@ -19,12 +19,12 @@ const rDomain = /^(((?!\-))(xn\-\-)?[a-z0-9\-_]{0,61}[a-z0-9]{1,1}\.)*(xn\-\-)?(
|
|||||||
await Promise.all([
|
await Promise.all([
|
||||||
fs.promises.writeFile(
|
fs.promises.writeFile(
|
||||||
path.resolve(__dirname, '../List/non_ip/apple_cdn.conf'),
|
path.resolve(__dirname, '../List/non_ip/apple_cdn.conf'),
|
||||||
res.map(domain => `DOMAIN,${domain}`).join('\n') + '\n',
|
res.map(domain => `DOMAIN-SUFFIX,${domain}`).join('\n') + '\n',
|
||||||
'utf-8'
|
'utf-8'
|
||||||
),
|
),
|
||||||
fs.promises.writeFile(
|
fs.promises.writeFile(
|
||||||
path.resolve(__dirname, '../List/domainset/apple_cdn.conf'),
|
path.resolve(__dirname, '../List/domainset/apple_cdn.conf'),
|
||||||
res.join('\n') + '\n',
|
res.map(i => `.${i}`).join('\n') + '\n',
|
||||||
'utf-8'
|
'utf-8'
|
||||||
)
|
)
|
||||||
])
|
])
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user