1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-29 21:45:21 -05:00
This commit is contained in:
Darien Raymond
2016-12-13 11:15:11 +01:00
parent 76da31c755
commit 031b1c14b8
2 changed files with 11 additions and 11 deletions

View File

@@ -195,7 +195,7 @@ func (v *ClientSession) DecodeResponseHeader(reader io.Reader) (*protocol.Respon
}
if buffer[2] != 0 {
cmdId := buffer[2]
cmdID := buffer[2]
dataLen := int(buffer[3])
_, err := io.ReadFull(v.responseReader, buffer[:dataLen])
if err != nil {
@@ -203,7 +203,7 @@ func (v *ClientSession) DecodeResponseHeader(reader io.Reader) (*protocol.Respon
return nil, err
}
data := buffer[:dataLen]
command, err := UnmarshalCommand(cmdId, data)
command, err := UnmarshalCommand(cmdID, data)
if err == nil {
header.Command = command
}