pinokiod 3.8.114 → 3.8.116
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/kernel/router/connector.js +1 -0
- package/kernel/router/index.js +1 -0
- 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
|
});
|
|
@@ -7,6 +7,7 @@ class Connector {
|
|
|
7
7
|
let connector_name = connector.host + ":" + connector.port
|
|
8
8
|
let listener = "0.0.0.0:PORT_PLACEHOLDER_" + connector_name
|
|
9
9
|
let listener_pointer = connector.host + ":PORT_PLACEHOLDER_" + connector_name
|
|
10
|
+
console.log("CONNECTING", { listener, dial, listener_pointer, match })
|
|
10
11
|
if(!this.router.config.apps.http.servers[connector_name]) {
|
|
11
12
|
this.router.config.apps.http.servers[connector_name] = {
|
|
12
13
|
"listen": [listener],
|
package/kernel/router/index.js
CHANGED
|
@@ -135,6 +135,7 @@ class Router {
|
|
|
135
135
|
|
|
136
136
|
if (count > 0) {
|
|
137
137
|
let ports = await this.kernel.ports(count)
|
|
138
|
+
console.log("Filling with port cache", { port_cache: this.port_cache, config: this.config })
|
|
138
139
|
let response = Util.fill_object(this.config, /PORT_PLACEHOLDER_.+/, ports, this.port_cache)
|
|
139
140
|
console.log("fill_object response", response)
|
|
140
141
|
this.config = response.result
|