From b661a4b9bc6094165c260ec1eadeffbf89b813c6 Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Fri, 15 Oct 2021 15:51:24 -0400 Subject: [PATCH] fix: missing identity --- waku/node.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/waku/node.go b/waku/node.go index 4bccef71..9f46dc55 100644 --- a/waku/node.go +++ b/waku/node.go @@ -355,12 +355,14 @@ func printListeningAddresses(ctx context.Context, nodeOpts []node.WakuNodeOption } var libp2pOpts []config.Option + libp2pOpts = append(libp2pOpts, params.Identity()) if options.AdvertiseAddress != "" { advertiseAddress, err := net.ResolveTCPAddr("tcp", fmt.Sprintf("%s:%d", options.AdvertiseAddress, options.Port)) if err != nil { panic(err) } + libp2pOpts = append(libp2pOpts, libp2p.AddrsFactory(func([]multiaddr.Multiaddr) []multiaddr.Multiaddr { addr, _ := manet.FromNetAddr(advertiseAddress) var result []multiaddr.Multiaddr @@ -376,6 +378,7 @@ func printListeningAddresses(ctx context.Context, nodeOpts []node.WakuNodeOption } libp2pOpts = append(libp2pOpts, libp2p.ListenAddrs(params.MultiAddresses()...)) + h, err := libp2p.New(ctx, libp2pOpts...) if err != nil { panic(err)