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{