From 73deff74ce28be8add84f2f1f4c138d9da8303c8 Mon Sep 17 00:00:00 2001 From: "M. Mert Yildiran" Date: Thu, 26 Aug 2021 01:20:43 +0300 Subject: [PATCH] Don't break the dissector loop. Protocols might collide --- tap/tcp_reader.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tap/tcp_reader.go b/tap/tcp_reader.go index b5a5e29fb..1cc7be82f 100644 --- a/tap/tcp_reader.go +++ b/tap/tcp_reader.go @@ -103,9 +103,6 @@ func (h *tcpReader) run(wg *sync.WaitGroup, isClient bool) { for _, extension := range extensions { r.Reset(data) - err := extension.Dissector.Dissect(bufio.NewReader(r), isClient, h.tcpID, h.Emitter) - if err == nil { - break - } + extension.Dissector.Dissect(bufio.NewReader(r), isClient, h.tcpID, h.Emitter) } }