network sniffer
This commit is contained in:
@@ -31,7 +31,7 @@ local page = UI.Page {
|
||||
{ heading = 'Status', key = 'status' },
|
||||
{ heading = 'Fuel', key = 'fuel' },
|
||||
},
|
||||
sortColumn = 'label',
|
||||
sortColumn = 'distance',
|
||||
autospace = true,
|
||||
},
|
||||
}
|
||||
|
||||
@@ -16,7 +16,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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user