diff --git a/app/proxy/proxy.go b/app/proxy/proxy.go index 4b354ac2..f1ef0762 100644 --- a/app/proxy/proxy.go +++ b/app/proxy/proxy.go @@ -92,7 +92,7 @@ func (this *ProxyConnection) Read(b []byte) (int, error) { func (this *ProxyConnection) Write(b []byte) (int, error) { if this.closed { - return 0, errors.New("Proxy|Outbound: Writing into closed connection.") + return 0, io.ErrClosedPipe } return this.writer.Write(b) } diff --git a/proxy/vmess/outbound/outbound.go b/proxy/vmess/outbound/outbound.go index 5ba96276..4fbea291 100644 --- a/proxy/vmess/outbound/outbound.go +++ b/proxy/vmess/outbound/outbound.go @@ -157,7 +157,6 @@ func (this *VMessOutboundHandler) handleResponse(session *encoding.ClientSession } bodyReader.Release() - return }