Browse Source

portable default address

master
Ondrej Zara 2 years ago
parent
commit
5e5378923f
  1. 2
      index.js
  2. 2
      package.json

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

2
package.json

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

Loading…
Cancel
Save