portable default address
This commit is contained in:
parent
ed32f8bbcd
commit
5e5378923f
2 changed files with 2 additions and 2 deletions
2
index.js
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}`);
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "ws2mpd",
|
||||
"version": "2.0.0",
|
||||
"version": "2.1.0",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
|
Loading…
Reference in a new issue