mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-28 17:41:54 +08:00
Update CloudMounter
This commit is contained in:
@@ -12,7 +12,15 @@ export const buildCloudMounterRules = task(require.main === module, __filename)(
|
||||
// AND,((SRC-IP,192.168.1.110), (DOMAIN, example.com))
|
||||
|
||||
const results = DOMAINS.flatMap(domain => {
|
||||
return PROCESS_NAMES.map(process => `AND,((${domain}),(PROCESS-NAME,${process}))`);
|
||||
return PROCESS_NAMES.flatMap(process => [
|
||||
`AND,((${domain}),(PROCESS-NAME,${process}))`,
|
||||
...[
|
||||
'10.0.0.0/8',
|
||||
'127.0.0.0/8',
|
||||
'172.16.0.0/12',
|
||||
'192.168.0.0/16'
|
||||
].map(cidr => `AND,((${domain}),(SRC-IP-CIDR,${cidr}))`)
|
||||
]);
|
||||
});
|
||||
|
||||
const description = SHARED_DESCRIPTION;
|
||||
|
||||
Reference in New Issue
Block a user