1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-24 07:48:38 +00:00
dockerfiles/mysql-proxy/code.lua
2016-05-09 23:30:22 +08:00

8 lines
167 B
Lua

io.stdout:setvbuf 'no'
function read_query(packet)
if packet:byte() == proxy.COM_QUERY then
print("we got a normal query: " .. packet:sub(2))
end
end