From c3acea92d022dc26423f7de7351dd6c17bc6acdb Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Tue, 12 Sep 2017 17:50:32 +1000 Subject: [PATCH] made the copper packet IDs only use printable characters --- modules/net/copper.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/net/copper.lua b/modules/net/copper.lua index fb2ad48..139345e 100644 --- a/modules/net/copper.lua +++ b/modules/net/copper.lua @@ -38,7 +38,7 @@ spawn("copperd",function() print(xpcall(function () end elseif ev[1] == "sendmsg" then 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.port = ev[3] p.msg = ev[4]