Perf: speed-up tldts

This commit is contained in:
SukkaW
2024-05-26 17:42:48 +08:00
parent 21a31e6c1f
commit aa3cb9e586
7 changed files with 74 additions and 15 deletions

View File

@@ -56,10 +56,11 @@ export const buildDomesticRuleset = task(import.meta.path, async (span) => {
: []
),
...domains.flatMap((domain) => [
`${domain} = server:${dns}`,
`*.${domain} = server:${dns}`
])
])
`${domain} = server:${dns}`,
`*.${domain} = server:${dns}`
])
]
)
],
path.resolve(import.meta.dir, '../Modules/sukka_local_dns_mapping.sgmodule')
)