Updated the express api to only listen on localhost (#5)

This commit is contained in:
Matthieu Le brazidec
2020-02-01 20:55:05 +01:00
committed by GitHub
parent a59cc16f34
commit 30844cb51b
2 changed files with 2 additions and 2 deletions

View File

@@ -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") {