Commit ca715437 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent e454a94b
......@@ -14,7 +14,7 @@ server.useAuth(socksv5.auth.UserPassword((username, password, cb) => {
async function isAuthUser(user, pass, cb) {
let cashedUser = await isUserFoundInCashe(user, pass, cb)
let cashedUser = isUserFoundInCashe(user, pass)
if (cashedUser) {
console.log("user Found in cashe")
cb(true)
......@@ -40,7 +40,7 @@ async function radius(user, pass) {
}
async function isUserFoundInCashe(user, pass) {
function isUserFoundInCashe(user, pass) {
for (let i = 0; i < authUserList.length; i++) {
if (authUserList[i].user === user && authUserList[i].pass === pass)
return true
......
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