Skip to content

Commit

Permalink
fix: libp2p identify agent version (#119)
Browse files Browse the repository at this point in the history
Co-authored-by: Henrique Dias <[email protected]>
  • Loading branch information
lidel and hacdias authored Apr 20, 2024
1 parent ce6190d commit cdff263
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ func Setup(ctx context.Context, cfg Config, key crypto.PrivKey, dnsCache *cached
libp2p.NATPortMap(),
libp2p.ConnectionManager(cmgr),
libp2p.Identity(key),
libp2p.UserAgent("rainbow/" + buildVersion()),
libp2p.BandwidthReporter(bwc),
libp2p.DefaultTransports,
libp2p.DefaultMuxers,
Expand Down Expand Up @@ -232,6 +233,7 @@ func Setup(ctx context.Context, cfg Config, key crypto.PrivKey, dnsCache *cached
libp2p.BandwidthReporter(bwc),
libp2p.DefaultTransports,
libp2p.DefaultMuxers,
libp2p.UserAgent("rainbow/"+buildVersion()),
libp2p.ResourceManager(dhtRcMgr),
)
if err != nil {
Expand Down

0 comments on commit cdff263

Please sign in to comment.