diff --git a/transport/v2raygrpclite/conn.go b/transport/v2raygrpclite/conn.go index 892d8f44..15663762 100644 --- a/transport/v2raygrpclite/conn.go +++ b/transport/v2raygrpclite/conn.go @@ -49,7 +49,9 @@ func newLateGunConn(writer io.Writer) *GunConn { } func (c *GunConn) setup(reader io.Reader, err error) { - c.reader = std_bufio.NewReader(reader) + if reader != nil { + c.reader = std_bufio.NewReader(reader) + } c.err = err close(c.create) }