Commit 8a165e81 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent f46cf1a3
Pipeline #106 canceled with stages
......@@ -3,7 +3,7 @@ const shell = require('shelljs')
const cron = require('node-cron');
let authUserList = []
const PORT = 1010
const PORT = 1080
const server = socksv5.createServer((_, resolve) => resolve())
......@@ -37,7 +37,7 @@ async function isAuthUser(user, pass, cb) {
async function radius(user, pass) {
let a = await shell.exec('radtest ' + user + ' ' + pass + ' ' + '109.237.27.107 0 testing123', {silent: true}).stdout;
console.log(a)
//console.log(a)
return a.includes("Access-Accept") === 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