mirror of
https://github.com/SukkaW/Surge.git
synced 2026-09-12 18:44:36 +08:00
Fix Local DNS Mapping
This commit is contained in:
@@ -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(', ');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user