We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5947fa0 commit c516b97Copy full SHA for c516b97
src/network/natTraversal/index.js
@@ -12,6 +12,7 @@ const pull = require('pull-stream')
12
const lp = require('pull-length-prefixed')
13
const Pushable = require('pull-pushable')
14
const once = require('once')
15
+const bs58 = require('bs58')
16
17
const register = require('./register')
18
const handler = require('./handler')
@@ -121,7 +122,7 @@ class WebRTC {
121
122
channel.on('signal', (signalingData) => {
123
p.push(
124
rlp.encode([
- Buffer.from(match.WebRTC_DESTINATION(multiaddr).getPeerId()),
125
+ Buffer.from(bs58.decode(match.WebRTC_DESTINATION(multiaddr).getPeerId())),
126
JSON.stringify(signalingData)
127
])
128
)
0 commit comments