diff --git a/index.js b/index.js index 873f4cd..3526d6e 100644 --- a/index.js +++ b/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!" )} ); \ No newline at end of file +app.listen( port, () => { console.log( "Server started!" )} );