From 81c9872884900588ae04774b3f605f1ca5e941da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=80=9D=E6=95=8F?= Date: Fri, 26 Aug 2022 10:16:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tap.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tap.go b/tap.go index 0ebf6d8..ca8c66e 100644 --- a/tap.go +++ b/tap.go @@ -82,7 +82,8 @@ func (cli *RPCClient) run() { } enc := gob.NewEncoder(zenc) - enc.Encode(<-cli.FrameChan) + cliBuffer := <-cli.FrameChan + enc.Encode(cliBuffer.BytesArray) // 发到对面的网卡 err = stream.Send(&gen.Request{