diff --git a/src/index.ts b/src/index.ts index 6af15b0..7594b24 100644 --- a/src/index.ts +++ b/src/index.ts @@ -91,7 +91,7 @@ async function handleConnect(aq: ActiveQuery) { try { // @ts-ignore socket = await dht.connect( - typeof pubkey === "string" ? hexToBuf(pubkey) : pubkey, + typeof pubkey === "string" ? hexToBuf(pubkey).shift() : pubkey, options ); } catch (e: any) {