type can be DATA

This commit is contained in:
Cloud Wu
2019-01-12 05:58:59 +08:00
committed by 云风
parent 6eb9b64f06
commit 0fbbd5f4d5

View File

@@ -43,22 +43,22 @@ converters[0xf6] = tonumber -- newdecimal
local function _get_byte2(data, i)
return (strunpack("<I2",data,i))
return strunpack("<I2",data,i)
end
local function _get_byte3(data, i)
return (strunpack("<I3",data,i))
return strunpack("<I3",data,i)
end
local function _get_byte4(data, i)
return (strunpack("<I4",data,i))
return strunpack("<I4",data,i)
end
local function _get_byte8(data, i)
return (strunpack("<I8",data,i))
return strunpack("<I8",data,i)
end
@@ -370,9 +370,6 @@ local function _recv_decode_packet_resp(self)
return false, "old pre-4.1 authentication protocol not supported"
end
if typ ~= 'OK' then
return false, "bad packet type: "
end
return true, packet
end
end