iteration
This commit is contained in:
parent
41c7bc33a0
commit
d147fe682c
@ -104,7 +104,6 @@ while true do
|
||||
end
|
||||
|
||||
if request.action == "token" then
|
||||
log("Token request from " .. client_id)
|
||||
if request.token == nil or request.token == "" or request.token == -1 then
|
||||
rednet.send(client_id, "invalid request", "auth")
|
||||
log("Token request from " .. client_id .. " denied (invalid request)")
|
||||
|
@ -117,7 +117,7 @@ while true do
|
||||
["token"] = request.token
|
||||
}, "auth")
|
||||
|
||||
local auth_response = rednet.receive("auth")
|
||||
authID, auth_response = rednet.receive("auth")
|
||||
log_debug("Auth response: " .. auth_response)
|
||||
local errorPos, errorEnd = string.find(auth_response, "invalid")
|
||||
if errorPos then
|
||||
|
Loading…
Reference in New Issue
Block a user