1
0
mirror of https://github.com/kepler155c/opus synced 2025-10-20 18:27:40 +00:00

proxy + pathfinding optimization

This commit is contained in:
kepler155c@gmail.com
2017-10-26 18:56:55 -04:00
parent 7fd93e8a8b
commit cac15722b8
15 changed files with 174 additions and 1271 deletions

View File

@@ -24,9 +24,10 @@ Event.addRoutine(function()
while true do
local data = socket:read()
if not data then
print('proxy: lost connection from ' .. socket.dhost)
break
end
socket:write({ proxy[data.fn](unpack(data.args)) })
socket:write({ proxy[data.fn](table.unpack(data.args)) })
end
end
end)