Fix tls + creating tls_stream (#1058)

This commit is contained in:
David Levanon
2022-05-01 14:46:31 +03:00
committed by GitHub
parent d3e6a69d82
commit cade960b9b
6 changed files with 91 additions and 109 deletions

View File

@@ -26,7 +26,7 @@ type tcpReader struct {
data []byte
progress *api.ReadProgress
captureTime time.Time
parent api.TcpStream
parent *tcpStream
packetsSeen uint
extension *api.Extension
emitter api.Emitter
@@ -35,7 +35,7 @@ type tcpReader struct {
sync.Mutex
}
func NewTcpReader(msgQueue chan api.TcpReaderDataMsg, progress *api.ReadProgress, ident string, tcpId *api.TcpID, captureTime time.Time, parent api.TcpStream, isClient bool, isOutgoing bool, extension *api.Extension, emitter api.Emitter, counterPair *api.CounterPair, reqResMatcher api.RequestResponseMatcher) api.TcpReader {
func NewTcpReader(msgQueue chan api.TcpReaderDataMsg, progress *api.ReadProgress, ident string, tcpId *api.TcpID, captureTime time.Time, parent *tcpStream, isClient bool, isOutgoing bool, extension *api.Extension, emitter api.Emitter, counterPair *api.CounterPair, reqResMatcher api.RequestResponseMatcher) *tcpReader {
return &tcpReader{
msgQueue: msgQueue,
progress: progress,