From 590cbae090bcc7f2512d3a55190452121bb3dfa7 Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Sat, 20 Apr 2024 01:06:50 +0200 Subject: [PATCH 1/2] fix: libp2p identify agent version --- setup.go | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.go b/setup.go index c468fcbe..750f9a4e 100644 --- a/setup.go +++ b/setup.go @@ -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, From 9c7bee79d176d546ee2d7548c50937199aba20a9 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Sat, 20 Apr 2024 08:16:50 +0200 Subject: [PATCH 2/2] fix: add user agent to dht host --- setup.go | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.go b/setup.go index 750f9a4e..d1e168ae 100644 --- a/setup.go +++ b/setup.go @@ -233,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 {