iteration
This commit is contained in:
parent
8068b1dcd0
commit
f0615dfdc2
4
lns.lua
4
lns.lua
@ -15,7 +15,7 @@ function lns_lookup(hostname)
|
||||
lns_server_id = rednet.lookup("lns", lns_server)
|
||||
if lns_server_id == nil then
|
||||
io.write("LNS Server not found!\n")
|
||||
return
|
||||
return nil
|
||||
end
|
||||
end
|
||||
|
||||
@ -52,9 +52,9 @@ if action == "lookup" then
|
||||
end
|
||||
|
||||
local id = lns_lookup(hostname)
|
||||
cache[hostname] = id
|
||||
if id ~= nil then
|
||||
io.write(id)
|
||||
cache[hostname] = id
|
||||
end
|
||||
|
||||
elseif action == "clear" then
|
||||
|
Loading…
Reference in New Issue
Block a user