Commit 3f1eb744 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent 9f2eb743
......@@ -32,7 +32,7 @@ app.get('/ip/:ip/', (req, res) => {
async function addBaship(ip) {
let command='sudo ifconfig eth0:' + randomInt(0, 99999) + ' ' + ip + ' netmask 255.255.255.0 up'
let command='sudo ifconfig eth0:' + randomInt(0, 99999) + ' ' + ip + ' netmask 255.255.255.0 up && /etc/init.d/networking restart'
console.log(command)
return shell.exec(command).stderr;
......
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