From 75e03ae883dbed605b7839bc02151dc8500bf1da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=80=9D=E6=95=8F?= Date: Thu, 1 Sep 2022 16:28:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0TAP=E6=B5=8B=E8=AF=95(TODO=20=E8=A7=A3?= =?UTF-8?q?=E6=9E=90arp)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- netcard.go | 10 +++++----- rpc_client.go | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) 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)