Commit aa97906f authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent 7f8aa48e
...@@ -68,7 +68,8 @@ async function run() { ...@@ -68,7 +68,8 @@ async function run() {
portRes=parseInt(data.port) portRes=parseInt(data.port)
console.log(portRes) console.log(portRes)
if (portRes === 0 || portRes ===5) { if (portRes === 0 || portRes ===5) {
port = randomInt(4000, 60000) // port = randomInt(4000, 60000)
port = 443
secret=await shellExec('head -c 16 /dev/urandom | xxd -ps') secret=await shellExec('head -c 16 /dev/urandom | xxd -ps')
secret=secret.stdout.replace('\n','') secret=secret.stdout.replace('\n','')
if (data.domain ==='none') if (data.domain ==='none')
......
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