Explorar o código

Don't report error for EOF

V2Ray %!s(int64=10) %!d(string=hai) anos
pai
achega
608f72f537
Modificáronse 1 ficheiros con 1 adicións e 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