Update tap/tcp_reader.go

Co-authored-by: Nimrod Gilboa Markevich <59927337+nimrod-up9@users.noreply.github.com>
This commit is contained in:
M. Mert Yıldıran 2022-05-12 13:27:29 +03:00 committed by GitHub
parent c176f4c737
commit 5aeb449a34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,7 +54,7 @@ func (reader *tcpReader) run(options *api.TrafficFilteringOptions, wg *sync.Wait
reader.counterPair = reader.parent.counterPairs[i]
b := bufio.NewReader(reader)
err := extension.Dissector.Dissect(b, reader, options)
if err == nil || reader.isProtocolIdentified() {
if reader.isProtocolIdentified() {
break
}
reader.rewind()