pinokiod 3.8.112 → 3.8.114

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 -1
  2. package/package.json +1 -1
package/kernel/peer.js CHANGED
@@ -58,14 +58,18 @@ class PeerDiscovery {
58
58
  console.log("binding socket")
59
59
  this.socket.bind({ address: "0.0.0.0", port: this.port }, () => {
60
60
  console.log("socket bound")
61
- this.socket.setMulticastLoopback(true);
61
+ // this.socket.setMulticastLoopback(true);
62
62
 
63
63
  this.socket.setBroadcast(true);
64
64
 
65
65
  // Send broadcast pings every interval
66
66
  this.interval_handle = setInterval(() => {
67
67
  console.log("send message to peers")
68
+ this.socket.send(this.message, 0, this.message.length, this.port, '127.0.0.1');
69
+ console.log("sent to 127.0.0.1")
68
70
  this.socket.send(this.message, 0, this.message.length, this.port, '255.255.255.255');
71
+ console.log("sent to 255.255.255.255")
72
+ console.log("sent message")
69
73
  }, this.interval);
70
74
  });
71
75
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.8.112",
3
+ "version": "3.8.114",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {