Fixed:Rule-Set Supported RuleExtra

This commit is contained in:
Skyxim
2021-12-02 23:32:30 +08:00
parent 6369921364
commit b99b4ad15f
2 changed files with 4 additions and 2 deletions

View File

@@ -46,7 +46,7 @@ func ParseRule(tp, payload, target string, params []string) (C.Rule, error) {
case "MATCH":
parsed = NewMatch(target, ruleExtra)
case "RULE-SET":
parsed, parseErr = NewRuleSet(payload, target)
parsed, parseErr = NewRuleSet(payload, target, ruleExtra)
default:
parseErr = fmt.Errorf("unsupported rule type %s", tp)
}