node-lifx-lan-multi 1.1.2 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -62,7 +62,10 @@ LifxLanUdp.prototype.init = function (config = {}) {
62
62
  }
63
63
  this._netif_list = netif_list;
64
64
  // Set up a UDP tranceiver
65
- this._udp = mDgram.createSocket('udp4');
65
+ this._udp = mDgram.createSocket({
66
+ type: 'udp4',
67
+ reuseAddr: true
68
+ });
66
69
  this._udp.once('error', (error) => {
67
70
  reject(error);
68
71
  return;
@@ -75,7 +78,8 @@ LifxLanUdp.prototype.init = function (config = {}) {
75
78
  this._receivePacket(buf, rinfo);
76
79
  });
77
80
  this._udp.bind({
78
- port: config.udp_receive_port ?? this._UDP_PORT
81
+ port: config.udp_receive_port ?? this._UDP_PORT,
82
+ exclusive: false
79
83
  });
80
84
  });
81
85
  return promise;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-lifx-lan-multi",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "description": "The node-lifx-lan is a Node.js module which allows you to communicate with the Wi-Fi LED smart light products \"LIFX\" using the LAN protocol.",
5
5
  "main": "./lib/lifx-lan.js",
6
6
  "files": [