Commit 7b406141 authored by Administrator's avatar Administrator

Update app.js

parent c19ed73f
Pipeline #144 failed with stages
......@@ -58,15 +58,8 @@ app.listen(3000, () => console.log(`Example app listening on port 3000!`))
async function run() {
let whiteIp = await getWhiteIp()
doIptable(whiteIp)
let portRes = await getPort()
portRes=parseInt(portRes)
console.log(portRes)
if (portRes === 0 || portRes === 443 || portRes ===5)
port = randomInt(4000, 60000)
else
port = parseInt(portRes)
port = 443
let a = await shell.exec('cd .. && cd mt && sudo ./server1.sh ' + port, {silent: true}).stdout;
console.log('Reset Proxy')
}
......
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