adjusted the client hostname

This commit is contained in:
navid.sassan 2021-01-09 03:49:39 +01:00
parent af6ff4e7dd
commit 0ed81baa6e

4
client
View File

@ -1,3 +1,5 @@
local hostname = "turtle" .. os.getComputerID()
local sides = peripheral.getNames() local sides = peripheral.getNames()
for i = 1, #sides do for i = 1, #sides do
if peripheral.getType(sides[i]) == "modem" then if peripheral.getType(sides[i]) == "modem" then
@ -25,7 +27,7 @@ function dump(o)
return tostring(o) return tostring(o)
end end
rednet.host("rmm", "t0-turtle01") rednet.host("rmm", hostname)
local master = rednet.lookup("rmm", "master") local master = rednet.lookup("rmm", "master")
while true do while true do
local event, id, data = os.pullEvent() local event, id, data = os.pullEvent()