diff --git a/netcard.go b/netcard.go index 01c44a7..5c23390 100644 --- a/netcard.go +++ b/netcard.go @@ -209,11 +209,11 @@ func (nt *NetTunnel) SendFrames(stream gen.FrameService_SendFramesServer) error log.Panic(err) } - buf, err := Decompress(request.GetFrames()) - if err != nil { - log.Panic(err) - } - nt.writer <- buf + // buf, err := Decompress(request.GetFrames()) + // if err != nil { + // log.Panic(err) + // } + nt.writer <- request.GetFrames() // frames := Decompress(request.GetFrames()) // if len(frames) > 0 { diff --git a/rpc_client.go b/rpc_client.go index 8cecbf0..2de0be5 100644 --- a/rpc_client.go +++ b/rpc_client.go @@ -132,7 +132,7 @@ func (cli *RPCClient) run() { // 发到对面的网卡 err = stream.Send(&gen.RequestFrames{ - Frames: Compress(buf), + Frames: buf, }) if err != nil { log.Panic(err)