Explorar el Código

Don't report error for EOF

V2Ray hace 10 años
padre
commit
608f72f537
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      io/encryption.go

+ 1 - 1
io/encryption.go

@@ -28,7 +28,7 @@ func (reader CryptionReader) Read(blocks []byte) (int, error) {
 	if nBytes > 0 {
 		reader.stream.XORKeyStream(blocks[:nBytes], blocks[:nBytes])
 	}
-	if err != nil {
+	if err != nil && err != io.EOF {
 		log.Error("Error reading blocks: %v", err)
 	}
 	return nBytes, err