mirror of
https://github.com/SukkaW/Surge.git
synced 2026-09-13 02:54:38 +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 ruleset_name = cur[0].toLowerCase();
|
||||||
const { domains, dns, hosts, ruleset } = cur[1];
|
const { domains, dns, hosts, ruleset } = cur[1];
|
||||||
|
|
||||||
|
if (dns == null) {
|
||||||
|
return acc;
|
||||||
|
}
|
||||||
|
|
||||||
Object.entries(hosts).forEach(([dns, ips]) => {
|
Object.entries(hosts).forEach(([dns, ips]) => {
|
||||||
acc[dns] ||= ips.join(', ');
|
acc[dns] ||= ips.join(', ');
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user