mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-08-30 16:23:27 +00:00
Revert "NULL
terminate the bytes with unix.ByteSliceToString
"
This reverts commit 7ee7ef7e44
.
This commit is contained in:
parent
5256902e9d
commit
04935b21aa
@ -22,7 +22,6 @@ import (
|
||||
"github.com/up9inc/mizu/logger"
|
||||
"github.com/up9inc/mizu/tap/api"
|
||||
orderedmap "github.com/wk8/go-ordered-map"
|
||||
"golang.org/x/sys/unix"
|
||||
)
|
||||
|
||||
const (
|
||||
@ -188,12 +187,10 @@ func (p *tlsPoller) pollGolangReadWrite(rd *ringbuf.Reader, emitter api.Emitter,
|
||||
|
||||
request := make([]byte, len(b.Data[:]))
|
||||
copy(request, b.Data[:])
|
||||
request = []byte(unix.ByteSliceToString(request))
|
||||
connection.ClientReader.send(request)
|
||||
} else {
|
||||
response := make([]byte, len(b.Data[:]))
|
||||
copy(response, b.Data[:])
|
||||
response = []byte(unix.ByteSliceToString(response))
|
||||
connection.ServerReader.send(response)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user