mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2026-04-03 16:03:18 +08:00
修复IP-CIDR的option错误
This commit is contained in:
@@ -31,7 +31,7 @@ function SurgeRuleSet() {
|
||||
const func = (rule) => {
|
||||
let output = `${rule.type},${rule.content}`;
|
||||
if (rule.type === 'IP-CIDR' || rule.type === 'IP-CIDR6') {
|
||||
output += rule.options ? `,${rule.options[0]}` : '';
|
||||
output += rule.options ? `,${rule.options}` : '';
|
||||
}
|
||||
return output;
|
||||
};
|
||||
@@ -63,7 +63,7 @@ function ClashRuleProvider() {
|
||||
rule.content
|
||||
}`;
|
||||
if (rule.type === 'IP-CIDR' || rule.type === 'IP-CIDR6') {
|
||||
output += rule.options ? `,${rule.options[0]}` : '';
|
||||
output += rule.options ? `,${rule.options}` : '';
|
||||
}
|
||||
return output;
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user