Commit da346cd9 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent e685f311
......@@ -8,7 +8,8 @@ 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)
console.log('user ' + username + ' ' + ' pass ' + password)
isAuthUser(username, password, 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