diff --git a/lns_server.lua b/lns_server.lua index d659d55..c594541 100644 --- a/lns_server.lua +++ b/lns_server.lua @@ -109,7 +109,9 @@ while true do local auth_passed = false if require_auth then local authID = data[auth_server] - if authID ~= nil then + if request.token == nil then + rednet.send(client_id, "invalid auth", "lns") + elseif authID ~= nil then rednet.send(authID, { action = "token", token = request.token