Update network proxy to v0.0.7

This commit is contained in:
Jefftree
2020-02-27 10:54:12 -08:00
parent 4c54241c3d
commit 0989770135
14 changed files with 20 additions and 21 deletions

View File

@@ -88,7 +88,7 @@ func (t *grpcTunnel) serve() {
return
}
klog.Infof("[tracing] recv packet %+v", pkt)
klog.V(6).Infof("[tracing] recv packet, type: %s", pkt.Type)
switch pkt.Type {
case client.PacketType_DIAL_RSP:
@@ -165,7 +165,7 @@ func (t *grpcTunnel) Dial(protocol, address string) (net.Conn, error) {
},
},
}
klog.Infof("[tracing] send packet %+v", req)
klog.V(6).Infof("[tracing] send packet, type: %s", req.Type)
err := t.stream.Send(req)
if err != nil {

View File

@@ -54,7 +54,7 @@ func (c *conn) Write(data []byte) (n int, err error) {
},
}
klog.Infof("[tracing] send req %+v", req)
klog.V(6).Infof("[tracing] send req, type: %s", req.Type)
err = c.stream.Send(req)
if err != nil {
@@ -122,7 +122,7 @@ func (c *conn) Close() error {
},
}
klog.Infof("[tracing] send req %+v", req)
klog.V(6).Infof("[tracing] send req, type: %s", req.Type)
if err := c.stream.Send(req); err != nil {
return err