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