iteration
This commit is contained in:
parent
ad59627743
commit
41c7bc33a0
@ -107,7 +107,7 @@ while true do
|
|||||||
log("Token request from " .. client_id)
|
log("Token request from " .. client_id)
|
||||||
if request.token == nil or request.token == "" or request.token == -1 then
|
if request.token == nil or request.token == "" or request.token == -1 then
|
||||||
rednet.send(client_id, "invalid request", "auth")
|
rednet.send(client_id, "invalid request", "auth")
|
||||||
log("Token request from " .. client_id .. " denied")
|
log("Token request from " .. client_id .. " denied (invalid request)")
|
||||||
else
|
else
|
||||||
|
|
||||||
local found = false
|
local found = false
|
||||||
@ -120,6 +120,7 @@ while true do
|
|||||||
end
|
end
|
||||||
|
|
||||||
if not found then
|
if not found then
|
||||||
|
log("Token request from " .. client_id .. " denied (invalid token)")
|
||||||
rednet.send(client_id, "invalid token", "auth")
|
rednet.send(client_id, "invalid token", "auth")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user