pinokiod 3.8.111 → 3.8.112

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.
Files changed (2) hide show
  1. package/kernel/peer.js +5 -0
  2. package/package.json +1 -1
package/kernel/peer.js CHANGED
@@ -50,11 +50,16 @@ class PeerDiscovery {
50
50
  }
51
51
  }
52
52
  });
53
+ this.socket.on('error', (err) => {
54
+ console.error('UDP error', err);
55
+ });
53
56
 
54
57
  // Enable broadcast
55
58
  console.log("binding socket")
56
59
  this.socket.bind({ address: "0.0.0.0", port: this.port }, () => {
57
60
  console.log("socket bound")
61
+ this.socket.setMulticastLoopback(true);
62
+
58
63
  this.socket.setBroadcast(true);
59
64
 
60
65
  // Send broadcast pings every interval
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.8.111",
3
+ "version": "3.8.112",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {