From 400a2e32f631d75025fe67a1050a0f46292e5288 Mon Sep 17 00:00:00 2001 From: ansoda Date: Wed, 10 Feb 2021 17:11:29 +0800 Subject: [PATCH] fix error --- proxy/conn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/conn.go b/proxy/conn.go index ab1d5d2..2c14771 100644 --- a/proxy/conn.go +++ b/proxy/conn.go @@ -69,7 +69,7 @@ func Relay(left, right net.Conn) error { if lc, ok := left.(interface { CloseWrite() error }); ok { - if e := lc.CloseWrite(); err1 == nil && e != io.EOF { + if e := lc.CloseWrite(); err == nil && e != io.EOF { err = e } }