mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-02 23:47:07 -05:00
fix auth reader
This commit is contained in:
parent
948c86e5c5
commit
8ced9aeec8
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user