Multiple NIC support for WeMo devices (#382)

* Update version of node-ssdp and use explicitSocketBind option to
work with multiple network interface cards. Based on discussion
in [node-ssdp issue #34](https://github.com/diversario/node-ssdp/issues/34)

* Bumping the version number
This commit is contained in:
Stephen Houser 2017-12-02 05:54:47 -05:00 committed by Ben Hardill
parent 22888cd8bd
commit f1c005707d
2 changed files with 3 additions and 3 deletions

View File

@ -115,7 +115,7 @@ WeMoNG.prototype.start = function start() {
//console.log("searching");
var _wemo = this;
_wemo.setMaxListeners(0);
_wemo._client = new Client();
_wemo._client = new Client({'explicitSocketBind': true});
_wemo._client.setMaxListeners(0);
_wemo._client.on('response', function (headers, statusCode, rinfo) {
var location = url.parse(headers.LOCATION);

View File

@ -1,6 +1,6 @@
{
"name": "node-red-node-wemo",
"version": "0.1.13",
"version": "0.1.14",
"description": "Input and Output nodes for Belkin WeMo devices",
"repository": "https://github.com/node-red/node-red-nodes/tree/master/hardware",
"main": "WeMoNG.js",
@ -19,7 +19,7 @@
},
"license": "APACHE-2.0",
"dependencies": {
"node-ssdp": "~2.9.1",
"node-ssdp": "~3.2.5",
"request": "~2.74.0",
"xml2js": "~0.4.13",
"util": "~0.10.3",