Darien Raymond 9 éve
szülő
commit
65a49e7fa0
2 módosított fájl, 1 hozzáadás és 2 törlés
  1. 1 1
      app/proxy/proxy.go
  2. 0 1
      proxy/vmess/outbound/outbound.go

+ 1 - 1
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)
 }

+ 0 - 1
proxy/vmess/outbound/outbound.go

@@ -157,7 +157,6 @@ func (this *VMessOutboundHandler) handleResponse(session *encoding.ClientSession
 	}
 
 	bodyReader.Release()
-
 	return
 }