Commit 5c98bd6f authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent 3824de8d
Pipeline #104 canceled with stages
......@@ -9,8 +9,9 @@ const server = socksv5.createServer((_, resolve) => resolve())
server.listen(PORT, () => console.log(`Listen: localhost:${PORT}`))
server.useAuth(socksv5.auth.UserPassword((username, password, cb) => {
isAuthUser(username, password, cb)
// cb(true)
}))
async function isAuthUser(user, pass, cb) {
......@@ -29,6 +30,7 @@ async function isAuthUser(user, pass, cb) {
}
cb(false)
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