@decentnetwork/peer 0.1.116 → 0.1.117
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 +5 -1
- package/package.json +1 -1
package/dist/peer.js
CHANGED
|
@@ -6193,7 +6193,11 @@ export class Peer {
|
|
|
6193
6193
|
const bootstrapIds = new Set(this.#opts.bootstrapNodes.map((node) => `${node.host}:${node.port}`));
|
|
6194
6194
|
const seenHosts = new Set();
|
|
6195
6195
|
const seenPublicKeys = new Set();
|
|
6196
|
-
|
|
6196
|
+
// Bootstraps first: the loop below keeps only the FIRST entry per host
|
|
6197
|
+
// (seenHosts), and #knownNodes iterates newest-first — so a just-learned
|
|
6198
|
+
// ephemeral port on a bootstrap's host (e.g. 45.63.127.106:52621, dead)
|
|
6199
|
+
// claimed the host and shadowed the real always-on port (:33445/:443).
|
|
6200
|
+
for (const node of dedupeNodes([...this.#opts.bootstrapNodes, ...this.#knownNodes])) {
|
|
6197
6201
|
if (!node.pk) {
|
|
6198
6202
|
continue;
|
|
6199
6203
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@decentnetwork/peer",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.117",
|
|
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",
|