security updates

This commit is contained in:
kepler155c@gmail.com
2019-06-29 16:35:33 -04:00
parent 69522e61d4
commit e75a357209
15 changed files with 147 additions and 119 deletions

View File

@@ -137,10 +137,14 @@ end
]]
function page.ports.grid:update()
local transport = network:getTransport()
local function findConnection(port)
for _,socket in pairs(_G.transport.sockets) do
if socket.sport == port then
return socket
if transport then
for _,socket in pairs(transport.sockets) do
if socket.sport == port then
return socket
end
end
end
end