From b7ff3a9bb60a8f45446282985da532938c897cea Mon Sep 17 00:00:00 2001 From: Modnark Date: Thu, 14 May 2026 11:41:00 -0400 Subject: [PATCH] allow custom interface --- index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 717a061..750ba77 100644 --- a/index.js +++ b/index.js @@ -30,6 +30,7 @@ const helmet = require('helmet'); // Get what we need for starting the server const serverPort = process.env.SRV_PORT; +const serverInterface = process.env.SRV_IF; // Database Setup const db = database.db; @@ -111,7 +112,7 @@ db.sync().then(() => { res.json(FormatForAPI(err.message || 'Internal Server Error')); }); - app.listen(serverPort, () => { - console.log(`NDM running @ localhost:${serverPort}`); + app.listen(serverPort, serverInterface, () => { + console.log(`NDM running @ ${serverInterface}:${serverPort}`); }); }); \ No newline at end of file