Commit b0b48360 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent e7cd5811
...@@ -15,12 +15,12 @@ server.useAuth(socksv5.auth.UserPassword((username, password, cb) => { ...@@ -15,12 +15,12 @@ server.useAuth(socksv5.auth.UserPassword((username, password, cb) => {
async function isAuthUser(user, pass, cb) { async function isAuthUser(user, pass, cb) {
let cashedUser = isUserFoundInCashe(user, pass) // let cashedUser = isUserFoundInCashe(user, pass)
if (cashedUser) { // if (cashedUser) {
console.log("user Found in cashe") // console.log("user Found in cashe")
cb(true) // cb(true)
return true // return true
} // }
let isRadiusUser = await radius(user, pass) let isRadiusUser = await radius(user, pass)
if (isRadiusUser) { if (isRadiusUser) {
......
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