made the copper packet IDs only use printable characters

This commit is contained in:
Izaya 2017-09-12 17:50:32 +10:00
parent 10615bfecb
commit c3acea92d0

View File

@ -38,7 +38,7 @@ spawn("copperd",function() print(xpcall(function ()
end end
elseif ev[1] == "sendmsg" then elseif ev[1] == "sendmsg" then
local p = {} local p = {}
p.pid = string.char(math.random(255),math.random(255),math.random(255)) p.pid = string.char(math.random(32,126),math.random(32,126),math.random(32,126))
p.nid = ev[2] p.nid = ev[2]
p.port = ev[3] p.port = ev[3]
p.msg = ev[4] p.msg = ev[4]