mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2026-04-02 05:43:18 +08:00
修复IP-CIDR的option错误
This commit is contained in:
@@ -9,7 +9,7 @@ const RULE_TYPES_MAPPING = [
|
||||
[/^(IN|SRC)-PORT$/, 'IN-PORT'],
|
||||
[/^PROTOCOL$/, 'PROTOCOL'],
|
||||
[/^IP-CIDR$/i, 'IP-CIDR'],
|
||||
[/^(IP-CIDR6|ip6-cidr|IP6-CIDR)$/],
|
||||
[/^(IP-CIDR6|ip6-cidr|IP6-CIDR)$/, 'IP-CIDR6'],
|
||||
];
|
||||
|
||||
function AllRuleParser() {
|
||||
@@ -40,7 +40,7 @@ function AllRuleParser() {
|
||||
rule.type === 'IP-CIDR' ||
|
||||
rule.type === 'IP-CIDR6'
|
||||
) {
|
||||
rule.options = params.slice(2);
|
||||
rule.options = params.slice(2).join(",");
|
||||
}
|
||||
result.push(rule);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user