@libp2p/circuit-relay-v2 3.2.24-a02cb0461 → 3.2.24-e8398d97e
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/index.min.js +1 -1
- package/dist/index.min.js.map +4 -4
- package/dist/src/constants.d.ts +1 -6
- package/dist/src/constants.d.ts.map +1 -1
- package/dist/src/constants.js +1 -6
- package/dist/src/constants.js.map +1 -1
- package/dist/src/index.d.ts +0 -8
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/server/index.d.ts.map +1 -1
- package/dist/src/server/index.js +6 -8
- package/dist/src/server/index.js.map +1 -1
- package/dist/src/transport/index.d.ts.map +1 -1
- package/dist/src/transport/index.js +4 -9
- package/dist/src/transport/index.js.map +1 -1
- package/dist/src/transport/reservation-store.js +2 -2
- package/dist/src/transport/reservation-store.js.map +1 -1
- package/package.json +12 -12
- package/src/constants.ts +1 -7
- package/src/index.ts +0 -9
- package/src/server/index.ts +5 -11
- package/src/transport/index.ts +4 -10
- package/src/transport/reservation-store.ts +2 -2
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ListenError } from '@libp2p/interface'
|
2
2
|
import { PeerMap } from '@libp2p/peer-collections'
|
3
3
|
import { createScalableCuckooFilter, PeerQueue, pbStream } from '@libp2p/utils'
|
4
|
-
import { multiaddr } from '@multiformats/multiaddr'
|
4
|
+
import { CODE_P2P, multiaddr } from '@multiformats/multiaddr'
|
5
5
|
import { Circuit } from '@multiformats/multiaddr-matcher'
|
6
6
|
import { TypedEventEmitter, setMaxListeners } from 'main-event'
|
7
7
|
import { nanoid } from 'nanoid'
|
@@ -427,7 +427,7 @@ export class ReservationStore extends TypedEventEmitter<ReservationStoreEvents>
|
|
427
427
|
for (const buf of response.reservation.addrs) {
|
428
428
|
let ma = multiaddr(buf)
|
429
429
|
|
430
|
-
if (ma.
|
430
|
+
if (ma.getComponents().find(c => c.code === CODE_P2P) == null) {
|
431
431
|
ma = ma.encapsulate(`/p2p/${connection.remotePeer}`)
|
432
432
|
}
|
433
433
|
|