This commit is contained in:
黄思敏 2022-08-26 10:20:36 +08:00
parent bd8c71835f
commit 0c5f40b876

2
tap.go
View File

@ -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(),