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:
celeste
2026-07-22 13:25:04 -07:00
committed by GitHub
co-authored by vmfunc
parent bd91f7f590
commit 01856440e8
+1 -1
View File
@@ -233,7 +233,7 @@ func checkTCPMatchers(matchers []Matcher, condition string, data string) bool {
func checkTCPMatcher(m *Matcher, data string) bool { func checkTCPMatcher(m *Matcher, data string) bool {
switch m.Type { switch m.Type {
case "word": case "word":
return checkWords(data, m.Words, m.Condition) return checkWords(data, m.Words, m.Condition, m.CaseInsensitive)
case "regex": case "regex":
return checkRegex(data, m.Regex, m.Condition) return checkRegex(data, m.Regex, m.Condition)
case "size": case "size":