From 30844cb51b7043b09c4ff196148d7199f29a191b Mon Sep 17 00:00:00 2001 From: Matthieu Le brazidec Date: Sat, 1 Feb 2020 20:55:05 +0100 Subject: [PATCH] Updated the express api to only listen on localhost (#5) --- package-lock.json | 2 +- src/scripts/express.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 12473f8..67ba76c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "tidal-hifi", - "version": "0.1.0", + "version": "0.5.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/src/scripts/express.js b/src/scripts/express.js index b0a51d0..d09e3b8 100644 --- a/src/scripts/express.js +++ b/src/scripts/express.js @@ -53,7 +53,7 @@ expressModule.run = function(mainWindow) { if (store.get(settings.api)) { let port = store.get(settings.apiSettings.port); - expressInstance = expressApp.listen(port, () => {}); + expressInstance = expressApp.listen(port, "127.0.0.1", () => {}); expressInstance.on("error", function(e) { let message = e.code; if (e.code === "EADDRINUSE") {