Skip to content

Commit

Permalink
fix: SUB-RULE with PROCESS-NAME rule payload not working (#953)
Browse files Browse the repository at this point in the history
  • Loading branch information
cesaryuan authored and Larvan2 committed Jan 6, 2024
1 parent 6bc9155 commit 7e3e38d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions rules/logic/logic.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,13 @@ func (logic *Logic) parsePayload(payload string, parseRule ParseRuleFunc) error
return err
}

if rule.ShouldResolveIP() {
logic.needIP = true
}
if rule.ShouldFindProcess() {
logic.needProcess = true
}

rules = append(rules, rule)
}

Expand Down

0 comments on commit 7e3e38d

Please sign in to comment.