Remove serial.Bytes

This commit is contained in:
v2ray committed 2016-05-24 22:09:22 +02:00
1 parent fc63f0432c
commit ab39750ceb
12 files changed
+35 -68

No files matched your search

+1 -1
View File
@@ -55,7 +55,7 @@ func UnmarshalCommand(cmdId byte, data []byte) (protocol.ResponseCommand, error)
return nil, transport.ErrorCorruptedPacket
}
expectedAuth := Authenticate(data[4:])
actualAuth := serial.BytesT(data[:4]).Uint32Value()
actualAuth := serial.BytesToUint32(data[:4])
if expectedAuth != actualAuth {
return nil, transport.ErrorCorruptedPacket
}