Commit dc9c1a97 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent 5cf8d8c0
...@@ -32,11 +32,11 @@ app.get('/ip/:ip/', (req, res) => { ...@@ -32,11 +32,11 @@ app.get('/ip/:ip/', (req, res) => {
async function addBaship(ip,id) { async function addBaship(ip,id) {
let bro=ip.split('.') // let bro=ip.split('.')
bro=bro[0]+'.'+bro[1]+'.'+bro[2]+'.255' // bro=bro[0]+'.'+bro[1]+'.'+bro[2]+'.255'
let command = 'ip addr add '+ip+'/24 dev eth0 label eth0:'+id+'' // let command = 'ip addr add '+ip+'/24 dev eth0 label eth0:'+id+''
console.log(command) // console.log(command)
return shell.exec(command).stderr; // 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