diff --git a/tap.go b/tap.go index 40e27ca..0b475fc 100644 --- a/tap.go +++ b/tap.go @@ -83,9 +83,9 @@ func (cli *RPCClient) run() { enc := gob.NewEncoder(zenc) cliBuffer := <-cli.FrameChan - log.Printf("%v", cliBuffer) enc.Encode(cliBuffer.BytesArray) + log.Printf("%v %d", cliBuffer, len(cliBuffer.BytesArray)) // 发到对面的网卡 err = stream.Send(&gen.Request{ Frames: buf.Bytes(),