mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-16 19:30:28 +08:00
Fix: correct cloudmounter rules
This commit is contained in:
parent
0a974c9e9f
commit
123576b692
@ -12,7 +12,7 @@ export const buildCloudMounterRules = task(import.meta.path, async () => {
|
|||||||
|
|
||||||
const results = DOMAINS.flatMap(domain => {
|
const results = DOMAINS.flatMap(domain => {
|
||||||
return PROCESS_NAMES.map(process => {
|
return PROCESS_NAMES.map(process => {
|
||||||
return `AND,((DOMAIN-SUFFIX,${domain}), (PROCESS-NAME, ${process}))`;
|
return `AND,((${domain}),(PROCESS-NAME,${process}))`;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -38,7 +38,7 @@ export const buildCommon = task(import.meta.path, async () => {
|
|||||||
}
|
}
|
||||||
if (
|
if (
|
||||||
relativePath.startsWith('ip/')
|
relativePath.startsWith('ip/')
|
||||||
|| relativePath.startsWith('non_ip/')
|
|| relativePath.startsWith('non_ip/')
|
||||||
) {
|
) {
|
||||||
promises.push(transformRuleset(entry.fullpath(), relativePath));
|
promises.push(transformRuleset(entry.fullpath(), relativePath));
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user