pinokiod 3.8.80 → 3.8.82

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 CHANGED
@@ -17,6 +17,7 @@ class PeerDiscovery {
17
17
  // Listen for incoming pings
18
18
  console.log("kernel.peer start")
19
19
  this.socket.on('message', (msg, rinfo) => {
20
+ console.log("peer message", { msg, rinfo })
20
21
  const ip = rinfo.address;
21
22
  console.log({rinfo})
22
23
  if (msg.toString() === this.message.toString() && this._isLocalLAN(ip)) {
@@ -33,6 +34,7 @@ class PeerDiscovery {
33
34
 
34
35
  // Send broadcast pings every interval
35
36
  setInterval(() => {
37
+ console.log("send message to peers")
36
38
  this.socket.send(this.message, 0, this.message.length, this.port, '255.255.255.255');
37
39
  }, this.interval);
38
40
  });
@@ -20,7 +20,9 @@ class LocalhostHomeRouter {
20
20
  "Access-Control-Allow-Origin": ["*"],
21
21
  "Access-Control-Allow-Methods": ["GET, POST, OPTIONS, PUT, DELETE"],
22
22
  "Access-Control-Allow-Headers": ["*"],
23
- "Vary": ["Origin"]
23
+ "Vary": ["Origin"],
24
+ "X-Forwarded-Proto": ["https"],
25
+ "X-Forwarded-Host": ["{http.request.host}"]
24
26
  }
25
27
  }
26
28
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.8.80",
3
+ "version": "3.8.82",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {