Commit a7aae9ca authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent 8ddf7885
Pipeline #143 failed with stages
......@@ -46,14 +46,16 @@ app.listen(3000, () => console.log(`Example app listening on port 3000!`))
async function run() {
console.log('try init')
let whiteIp = await getWhiteIp()
doIptable(whiteIp)
let portRes = await getPort()
if (portRes.route ==='0')
{
await sleep(1500)
return run()
}
let whiteIp = await getWhiteIp()
doIptable(whiteIp)
routeIp=portRes.route
portRes=parseInt(portRes.port)
console.log(portRes)
......
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