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