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) => {
async function isAuthUser(user, pass, cb) {
let cashedUser = isUserFoundInCashe(user, pass)
if (cashedUser) {
console.log("user Found in cashe")
cb(true)
return true
}
// let cashedUser = isUserFoundInCashe(user, pass)
// if (cashedUser) {
// console.log("user Found in cashe")
// cb(true)
// return true
// }
let isRadiusUser = await radius(user, pass)
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