Commit 8c9d4d80 authored by Administrator's avatar Administrator

Update app.js

parent a86e89b6
......@@ -58,14 +58,14 @@ 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)
let a = await shell.exec('cd .. && cd mt && sudo ./server1.sh ' + port, {silent: true}).stdout;
console.log('Reset Proxy')
// let whiteIp = await getWhiteIp()
// doIptable(whiteIp)
// let portRes = await getPort()
// portRes=parseInt(portRes)
// console.log(portRes)
// 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