Skip to content

Commit e7b333e

Browse files
committed
Fix the bug @RangerMauve found.
1 parent 19a69c4 commit e7b333e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ class CorestoreNetworker extends EventEmitter {
219219
}
220220
opts = { ...opts, ...config }
221221

222-
const keyString = (typeof discoveryKey === 'string') ? discoveryKey : Buffer.from(discoveryKey, 'hex')
222+
const keyString = (typeof discoveryKey === 'string') ? discoveryKey : discoveryKey.toString('hex')
223223
this._configurations.set(keyString, opts)
224224

225225
const joining = config.announce || config.lookup

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"debug": "^4.1.1",
88
"end-of-stream": "^1.4.4",
99
"hypercore-protocol": "^8.0.0",
10-
"hyperswarm": "^2.10.0",
10+
"hyperswarm": "^2.14.1",
1111
"pump": "^3.0.0"
1212
},
1313
"devDependencies": {

0 commit comments

Comments
 (0)