1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-26 12:05:35 -05:00

fix auth reader

This commit is contained in:
Darien Raymond
2016-12-13 08:30:24 +01:00
parent 948c86e5c5
commit 8ced9aeec8

View File

@@ -159,7 +159,7 @@ func (v *AuthenticationReader) Read(b []byte) (int, error) {
}
totalBytes := v.CopyChunk(b)
for v.aggressive {
for v.aggressive && totalBytes < len(b) {
if err := v.NextChunk(); err != nil {
break
}