From 1b29112a2ce8253ee103a88ec85cbec716beae5a Mon Sep 17 00:00:00 2001 From: "arraykeys@gmail.com" Date: Fri, 21 Sep 2018 12:02:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dencrypt.Conn=E9=87=8A?= =?UTF-8?q?=E6=94=BE=E5=86=85=E5=AD=98,=E5=AF=BC=E8=87=B4=E7=9A=84?= =?UTF-8?q?=E6=BD=9C=E5=9C=A8panic=E9=97=AE=E9=A2=98.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/lib/transport/encrypt/conn.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/lib/transport/encrypt/conn.go b/core/lib/transport/encrypt/conn.go index a9ed308..a4c0295 100644 --- a/core/lib/transport/encrypt/conn.go +++ b/core/lib/transport/encrypt/conn.go @@ -35,13 +35,13 @@ func NewConn(c net.Conn, method, password string) (conn net.Conn, err error) { } func (s *Conn) Read(b []byte) (n int, err error) { if s.r == nil { - return 0, fmt.Errorf("use of closed connection") + return 0, fmt.Errorf("use of closed network connection") } return s.r.Read(b) } func (s *Conn) Write(b []byte) (n int, err error) { if s.w == nil { - return 0, fmt.Errorf("use of closed connection") + return 0, fmt.Errorf("use of closed network connection") } return s.w.Write(b) }