From 2eecdc38a47c76458a1f1206cdd5e969bfd88d34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Fri, 8 Dec 2023 21:10:13 +0800 Subject: [PATCH] Fix gun conn setup --- transport/v2raygrpclite/conn.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) }