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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user