mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-01-12 12:15:26 -05:00
Don't report error for EOF
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user