From 6a19d46e17bd43bb00d4b98215f7a9236e11cbec Mon Sep 17 00:00:00 2001 From: Jorropo Date: Tue, 13 Sep 2022 15:54:35 +0200 Subject: [PATCH 1/2] fix: create a copy of the protocol slice in network.processSettings Fixes #584 --- network/ipfs_impl.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network/ipfs_impl.go b/network/ipfs_impl.go index 292535a5..392a00ed 100644 --- a/network/ipfs_impl.go +++ b/network/ipfs_impl.go @@ -55,7 +55,7 @@ func NewFromIpfsHost(host host.Host, r routing.ContentRouting, opts ...NetOpt) B } func processSettings(opts ...NetOpt) Settings { - s := Settings{SupportedProtocols: internal.DefaultProtocols} + s := Settings{SupportedProtocols: append([]protocol.ID(nil), internal.DefaultProtocols...)} for _, opt := range opts { opt(&s) } From 8ed92a83a3e6b9e315b363f1f484139c38953125 Mon Sep 17 00:00:00 2001 From: Jorropo Date: Tue, 13 Sep 2022 15:54:51 +0200 Subject: [PATCH 2/2] chore: release v0.10.2 --- version.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.json b/version.json index b6bb0741..9186b8ee 100644 --- a/version.json +++ b/version.json @@ -1,3 +1,3 @@ { - "version": "v0.10.1" + "version": "v0.10.2" }