mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Fix local dns mapping
This commit is contained in:
@@ -49,7 +49,10 @@ const domainSorter = require('./lib/stable-sort-domain');
|
||||
'[Host]',
|
||||
...Object.entries(DOMESTICS)
|
||||
.flatMap(
|
||||
([, { domains, dns }]) => domains.map((domain) => `${domain} = server:${dns}`)
|
||||
([, { domains, dns }]) => domains.flatMap((domain) => [
|
||||
`${domain} = server:${dns}`,
|
||||
`*.${domain} = server:${dns}`
|
||||
])
|
||||
),
|
||||
''
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user