Update path
This commit is contained in:
parent
fe941c6433
commit
ecb804fe4c
4
index.js
4
index.js
@ -63,7 +63,7 @@ app.get( '/api/getDevices', async ( req, res ) => {
|
||||
// Read the dnsmasq file
|
||||
console.log( 'Loading all devices...' );
|
||||
|
||||
const fileStream = fs.createReadStream('/home/tobias/IdeaProjects/network-devices/dnsmasq.leases' );
|
||||
const fileStream = fs.createReadStream('/var/lib/misc/dnsmasq.leases' );
|
||||
const rl = readline.createInterface( { input: fileStream, crlfDelay: Infinity } );
|
||||
|
||||
let data = [];
|
||||
@ -96,4 +96,4 @@ app.get( '*', ( req, res ) => {
|
||||
res.end();
|
||||
} );
|
||||
|
||||
app.listen( port, () => { console.log( "Server started!" )} );
|
||||
app.listen( port, () => { console.log( "Server started!" )} );
|
||||
|
Loading…
x
Reference in New Issue
Block a user