mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-12 09:10:35 +08:00
Backward compat for non_ip/lan
This commit is contained in:
parent
a8e819efd8
commit
cdc28aa879
@ -73,6 +73,11 @@ export const getDomesticAndDirectDomainsRulesetPromise = createMemoizedPromise(a
|
||||
appendArrayInPlace(directs, domains.flatMap(getDnsMappingRuleWithWildcard));
|
||||
});
|
||||
|
||||
// backward compatible, add lan.conf
|
||||
Object.values(LAN).forEach(({ domains }) => {
|
||||
appendArrayInPlace(lans, domains.flatMap(getDnsMappingRuleWithWildcard));
|
||||
});
|
||||
|
||||
return [domestics, directs, lans] as const;
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user