Commit 9799e079 authored by Ahmad Nemati's avatar Ahmad Nemati

init

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