pinokiod 3.8.114 → 3.8.115
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.
- package/kernel/peer.js +5 -4
- package/package.json +1 -1
package/kernel/peer.js
CHANGED
|
@@ -65,10 +65,11 @@ class PeerDiscovery {
|
|
|
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")
|
|
70
|
-
this.socket.send(this.message, 0, this.message.length, this.port, '255.255.255.255');
|
|
71
|
-
|
|
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")
|
|
70
|
+
//this.socket.send(this.message, 0, this.message.length, this.port, '255.255.255.255');
|
|
71
|
+
this.socket.send(this.message, 0, this.message.length, this.port, '192.168.1.255');
|
|
72
|
+
//console.log("sent to 255.255.255.255")
|
|
72
73
|
console.log("sent message")
|
|
73
74
|
}, this.interval);
|
|
74
75
|
});
|