From 04935b21aa394af85a4b52b6615c64abed83baf1 Mon Sep 17 00:00:00 2001 From: "M. Mert Yildiran" Date: Thu, 2 Jun 2022 00:15:28 +0300 Subject: [PATCH] Revert "`NULL` terminate the bytes with `unix.ByteSliceToString`" This reverts commit 7ee7ef7e44473d17293ca4d43950f7cb52d952bb. --- tap/tlstapper/tls_poller.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/tap/tlstapper/tls_poller.go b/tap/tlstapper/tls_poller.go index f9667eed4..281621a19 100644 --- a/tap/tlstapper/tls_poller.go +++ b/tap/tlstapper/tls_poller.go @@ -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) } }