From 373be020a330bff958c5cb62aba8ad4221f3c0be Mon Sep 17 00:00:00 2001 From: osmarks Date: Thu, 26 Jul 2018 16:36:17 +0100 Subject: [PATCH] Give computers actually-unique hostnames --- lib.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib.lua b/lib.lua index 208fad8..de71cce 100644 --- a/lib.lua +++ b/lib.lua @@ -69,7 +69,7 @@ local protocol = "wyvern" -- If it errors, an internal error will be returned. -- Second argument is the type of node to host as. Other nodes may attempt to use this to discover other local-network nodes. local function serve(fn, nodeType) - rednet.host(protocol .. "/" .. nodeType, nodeType) + rednet.host(protocol .. "/" .. nodeType, nodeType .. "/" .. tostring(os.getComputerID())) while true do local sender, message = rednet.receive(protocol)