Commit 7bad5fd2 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent b1edd8f7
...@@ -49,7 +49,7 @@ async function doAuth(packet, user, rinfo) { ...@@ -49,7 +49,7 @@ async function doAuth(packet, user, rinfo) {
console.log(keys) console.log(keys)
for (let i=0;i<keys.length;i++) for (let i=0;i<keys.length;i++)
{ {
if (user.username+'_'+user.ip ===keys) if (user.username+'_'+user.ip ===keys[i])
{ {
console.log('uuid with ' + user.username + ' with ip:' + user.ip + ' granted') console.log('uuid with ' + user.username + ' with ip:' + user.ip + ' granted')
sendResponsePacket(packet, rinfo, accept) sendResponsePacket(packet, rinfo, accept)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment