Skip to content

Commit

Permalink
Fix tunnel should decode z32 key
Browse files Browse the repository at this point in the history
  • Loading branch information
LuKks committed Oct 22, 2023
1 parent 141c237 commit 107a2ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ async function cmd (serverPublicKey, options = {}) {

serverPublicKey = getKnownPeer(serverPublicKey)

const seed = HypercoreId.encode(fs.readFileSync(keyfile, 'utf8').trim())
const seed = HypercoreId.decode(fs.readFileSync(keyfile, 'utf8').trim())
const keyPair = DHT.keyPair(seed)

const node = new DHT({ bootstrap: options.testnet ? [{ host: '127.0.0.1', port: 40838 }] : undefined })
Expand Down

0 comments on commit 107a2ee

Please sign in to comment.