mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-28 17:41:54 +08:00
Refactor: minor changes
This commit is contained in:
@@ -44,7 +44,7 @@ const HOSTNAMES = [
|
||||
|
||||
export const buildAlwaysRealIPModule = task(import.meta.main, import.meta.path)(async (span) => {
|
||||
// Intranet, Router Setup, and mant more
|
||||
const dataset = ([Object.entries(DIRECTS), Object.entries(LANS)]);
|
||||
const dataset = [Object.entries(DIRECTS), Object.entries(LANS)];
|
||||
const surge = dataset.flatMap(data => data.flatMap(([, { domains }]) => domains.flatMap((domain) => [`*.${domain}`, domain])));
|
||||
const clash = dataset.flatMap(data => data.flatMap(([, { domains }]) => domains.map((domain) => `+.${domain}`)));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user