mirror of
https://github.com/Mastermindzh/tidal-hifi.git
synced 2025-07-28 00:22:26 +02:00
Updated the express api to only listen on localhost (#5)
This commit is contained in:
committed by
GitHub
parent
a59cc16f34
commit
30844cb51b
@@ -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") {
|
||||
|
Reference in New Issue
Block a user