Fix Local DNS Mapping

This commit is contained in:
SukkaW
2026-07-30 12:01:15 +08:00
parent 2fb42290e1
commit 9cbb54a5f4

View File

@@ -207,6 +207,10 @@ export const buildDomesticRuleset = task(require.main === module, __filename)(as
const ruleset_name = cur[0].toLowerCase();
const { domains, dns, hosts, ruleset } = cur[1];
if (dns == null) {
return acc;
}
Object.entries(hosts).forEach(([dns, ips]) => {
acc[dns] ||= ips.join(', ');
});