mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-01 08:17:25 +00:00
Remove serial.Bytes
This commit is contained in:
@@ -73,9 +73,9 @@ func (this *AuthChunkReader) Read() (*alloc.Buffer, error) {
|
||||
}
|
||||
}
|
||||
log.Debug("VMess Reader: raw buffer: ", buffer.Value)
|
||||
length := serial.BytesT(buffer.Value[:2]).Uint16Value()
|
||||
length := serial.BytesToUint16(buffer.Value[:2])
|
||||
this.chunkLength = int(length) - 4
|
||||
this.validator = NewValidator(serial.BytesT(buffer.Value[2:6]).Uint32Value())
|
||||
this.validator = NewValidator(serial.BytesToUint32(buffer.Value[2:6]))
|
||||
buffer.SliceFrom(6)
|
||||
} else if buffer.Len() < this.chunkLength {
|
||||
_, err := buffer.FillFrom(this.reader)
|
||||
|
||||
Reference in New Issue
Block a user