network sniffer

This commit is contained in:
kepler155c@gmail.com
2019-02-23 18:36:42 -05:00
parent 3d875890b0
commit 5dc87ef8d1
4 changed files with 5 additions and 3 deletions

View File

@@ -57,7 +57,7 @@ local function hijackTurtle(remoteId)
local hijack = { }
for _,method in pairs(methods) do
hijack[method] = function(...)
socket:write({ fn = method, args = { ... } })
socket:write({ method, ... })
local resp = socket:read()
if not resp then
error('timed out: ' .. method)