Skip to content

Commit

Permalink
Don't unslab own publicKey
Browse files Browse the repository at this point in the history
  • Loading branch information
HDegroote committed Jul 30, 2024
1 parent 806e664 commit 8615985
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module.exports = function connect (dht, publicKey, opts = {}) {
const keyPair = opts.keyPair || dht.defaultKeyPair
const relayThrough = selectRelay(opts.relayThrough || null)
const encryptedSocket = (opts.createSecretStream || defaultCreateSecretStream)(true, null, {
publicKey: unslab(keyPair.publicKey),
publicKey: keyPair.publicKey,
remotePublicKey: publicKey,
autoStart: false,
keepAlive: dht.connectionKeepAlive
Expand Down

0 comments on commit 8615985

Please sign in to comment.