Commit d42d755c authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent b0b48360
......@@ -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 cache")
cb(true)
return true
}
let isRadiusUser = await radius(user, pass)
if (isRadiusUser) {
......@@ -50,7 +50,7 @@ function isUserFoundInCashe(user, pass) {
return false
}
cron.schedule('*/1 * * * * *', () => {
cron.schedule(' * */1 * * *', () => {
// requestPing()
checkUser()
});
......
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