mirror of
https://github.com/Mastermindzh/tidal-hifi.git
synced 2024-11-22 21:42:46 +01:00
Updated the express api to only listen on localhost (#5)
This commit is contained in:
parent
a59cc16f34
commit
30844cb51b
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "tidal-hifi",
|
"name": "tidal-hifi",
|
||||||
"version": "0.1.0",
|
"version": "0.5.0",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -53,7 +53,7 @@ expressModule.run = function(mainWindow) {
|
|||||||
if (store.get(settings.api)) {
|
if (store.get(settings.api)) {
|
||||||
let port = store.get(settings.apiSettings.port);
|
let port = store.get(settings.apiSettings.port);
|
||||||
|
|
||||||
expressInstance = expressApp.listen(port, () => {});
|
expressInstance = expressApp.listen(port, "127.0.0.1", () => {});
|
||||||
expressInstance.on("error", function(e) {
|
expressInstance.on("error", function(e) {
|
||||||
let message = e.code;
|
let message = e.code;
|
||||||
if (e.code === "EADDRINUSE") {
|
if (e.code === "EADDRINUSE") {
|
||||||
|
Loading…
Reference in New Issue
Block a user