Commit 5cf8d8c0 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent 2f37f280
......@@ -34,7 +34,7 @@ app.get('/ip/:ip/', (req, res) => {
async function addBaship(ip,id) {
let bro=ip.split('.')
bro=bro[0]+'.'+bro[1]+'.'+bro[2]+'.255'
let command = 'ip addr add '+ip+'/24 broadcast '+bro+' dev eth0 label eth0:'+id+''
let command = 'ip addr add '+ip+'/24 dev eth0 label eth0:'+id+''
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