mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-28 17:41:54 +08:00
Feat: merge IP CIDR in ruleset
This commit is contained in:
@@ -49,7 +49,6 @@ export const buildAlwaysRealIPModule = task(require.main === module, __filename)
|
||||
// Intranet, Router Setup, and mant more
|
||||
const dataset = [Object.entries(DIRECTS), Object.entries(LANS)];
|
||||
const surge = dataset.flatMap(data => data.flatMap(([, { domains }]) => domains.flatMap((domain) => [`*.${domain}`, domain])));
|
||||
const clash = ;
|
||||
|
||||
return Promise.all([
|
||||
compareAndWriteFile(
|
||||
@@ -69,6 +68,7 @@ export const buildAlwaysRealIPModule = task(require.main === module, __filename)
|
||||
{
|
||||
dns: {
|
||||
'fake-ip-filter': appendArrayInPlace(
|
||||
/** clash */
|
||||
dataset.flatMap(data => data.flatMap(([, { domains }]) => domains.map((domain) => `+.${domain}`))),
|
||||
HOSTNAMES
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user