portable default address

This commit is contained in:
Ondrej Zara 2020-03-29 12:35:26 +02:00
parent ed32f8bbcd
commit 5e5378923f
2 changed files with 2 additions and 2 deletions

View file

@ -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}`);

View file

@ -1,6 +1,6 @@
{
"name": "ws2mpd",
"version": "2.0.0",
"version": "2.1.0",
"description": "",
"main": "index.js",
"scripts": {