From e3e1197a9186192c72d09a8bc146eca73b92c745 Mon Sep 17 00:00:00 2001 From: "fryorcraken.eth" Date: Thu, 17 Nov 2022 11:30:07 +1100 Subject: [PATCH] fix: correct usage of the libp2p API --- packages/create/src/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/create/src/index.ts b/packages/create/src/index.ts index 496a8708d5..a72ff81cc1 100644 --- a/packages/create/src/index.ts +++ b/packages/create/src/index.ts @@ -171,7 +171,9 @@ export async function defaultLibp2p( streamMuxers: [new Mplex()], connectionEncryption: [new Noise()], identify: { - host: userAgent ?? DefaultUserAgent, + host: { + agentVersion: userAgent ?? DefaultUserAgent, + }, }, } as Libp2pOptions, wakuRelay ? { pubsub: wakuRelay } : {},