mirror of https://github.com/v2ray/v2ray-core
parent
948c86e5c5
commit
8ced9aeec8
|
@ -159,7 +159,7 @@ func (v *AuthenticationReader) Read(b []byte) (int, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
totalBytes := v.CopyChunk(b)
|
totalBytes := v.CopyChunk(b)
|
||||||
for v.aggressive {
|
for v.aggressive && totalBytes < len(b) {
|
||||||
if err := v.NextChunk(); err != nil {
|
if err := v.NextChunk(); err != nil {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue