mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-01 08:17:25 +00:00
bytes to number methods
This commit is contained in:
@@ -78,7 +78,7 @@ func (this *SwitchAccount) Unmarshal(data []byte) error {
|
||||
if len(data) < alterIdStart+2 {
|
||||
return transport.CorruptedPacket
|
||||
}
|
||||
this.AlterIds = serial.ParseUint16(data[alterIdStart : alterIdStart+2])
|
||||
this.AlterIds = serial.BytesLiteral(data[alterIdStart : alterIdStart+2]).Uint16()
|
||||
levelStart := alterIdStart + 2
|
||||
if len(data) < levelStart+1 {
|
||||
return transport.CorruptedPacket
|
||||
|
||||
Reference in New Issue
Block a user