diff --git a/index.js b/index.js index 796090b..7bf4b8f 100644 --- a/index.js +++ b/index.js @@ -8,7 +8,7 @@ function initConnection(request) { log("ws connection accepted from origin", request.origin); let parts = (request.resourceURL.query.server || "").split(":"); - let host = parts[0] || "0"; + let host = parts[0] || "localhost"; let port = Number(parts[1]) || 6600; log(`connecting to mpd at ${host}:${port}`); diff --git a/package.json b/package.json index 0ab8bae..1906ea5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ws2mpd", - "version": "2.0.0", + "version": "2.1.0", "description": "", "main": "index.js", "scripts": {