pinokiod 3.8.79 → 3.8.80

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/caddy2.js CHANGED
@@ -69,7 +69,9 @@ class Caddy {
69
69
  "Access-Control-Allow-Origin": ["*"],
70
70
  "Access-Control-Allow-Methods": ["GET, POST, OPTIONS, PUT, DELETE"],
71
71
  "Access-Control-Allow-Headers": ["*"],
72
- "Vary": ["Origin"]
72
+ "Vary": ["Origin"],
73
+ "X-Forwarded-Proto": ["https"],
74
+ "X-Forwarded-Host": ["{http.request.host}"]
73
75
  }
74
76
  }
75
77
  },
package/kernel/peer.js CHANGED
@@ -15,8 +15,10 @@ class PeerDiscovery {
15
15
  }
16
16
  start() {
17
17
  // Listen for incoming pings
18
+ console.log("kernel.peer start")
18
19
  this.socket.on('message', (msg, rinfo) => {
19
20
  const ip = rinfo.address;
21
+ console.log({rinfo})
20
22
  if (msg.toString() === this.message.toString() && this._isLocalLAN(ip)) {
21
23
  if (!this.peers.has(ip)) {
22
24
  console.log(`Discovered peer: ${ip}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.8.79",
3
+ "version": "3.8.80",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {