@decentnetwork/peer 0.1.14 → 0.1.16
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/dist/peer.js +8 -0
- package/package.json +1 -1
package/dist/peer.js
CHANGED
|
@@ -889,6 +889,14 @@ export class Peer {
|
|
|
889
889
|
return;
|
|
890
890
|
}
|
|
891
891
|
this.#tracePacket("rx", packet, { host: remote.address, port: remote.port });
|
|
892
|
+
// TEMP: log every inbound UDP datagram so we can see if bootstraps reply at all
|
|
893
|
+
// Fire-and-forget — dynamic import in a sync handler.
|
|
894
|
+
import("fs").then((fs) => {
|
|
895
|
+
try {
|
|
896
|
+
fs.appendFileSync("/tmp/decent-udp-rx.log", `${new Date().toISOString()} from=${remote.address}:${remote.port} firstByte=0x${packet[0]?.toString(16) ?? "??"} len=${packet.length}\n`);
|
|
897
|
+
}
|
|
898
|
+
catch { /* best-effort */ }
|
|
899
|
+
}).catch(() => { });
|
|
892
900
|
if (packet[0] === NET_PACKET_CRYPTO) {
|
|
893
901
|
const opened = openToxDhtCryptoRequest(packet, this.#keyPair);
|
|
894
902
|
if (!opened) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@decentnetwork/peer",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.16",
|
|
4
4
|
"description": "Pure TypeScript port of Elastos Carrier (toxcore-derived) P2P messaging. DHT, onion routing, TCP relay, FlatBuffers app payloads, Express offline relay. Wire-compatible with iOS Beagle and the Carrier C SDK.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|