mirror of
https://github.com/lunchcat/sif.git
synced 2026-07-28 14:37:01 -07:00
fix(modules): pass case-insensitive flag to tcp word matcher (#373)
#308's tcp.go called checkWords/3 but #319 added the caseInsensitive param (and updated the http path in executor.go, not the tcp one). main stopped compiling once both landed: tcp.go:236 not enough arguments in call to checkWords. mirror executor.go and pass m.CaseInsensitive. Co-authored-by: vmfunc <vmfunc.lc@gmail.com>
This commit is contained in:
@@ -233,7 +233,7 @@ func checkTCPMatchers(matchers []Matcher, condition string, data string) bool {
|
||||
func checkTCPMatcher(m *Matcher, data string) bool {
|
||||
switch m.Type {
|
||||
case "word":
|
||||
return checkWords(data, m.Words, m.Condition)
|
||||
return checkWords(data, m.Words, m.Condition, m.CaseInsensitive)
|
||||
case "regex":
|
||||
return checkRegex(data, m.Regex, m.Condition)
|
||||
case "size":
|
||||
|
||||
Reference in New Issue
Block a user