mirror of
https://github.com/v2fly/v2ray-core
synced 2024-02-27 03:18:06 +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