Skip to content
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.

fix: create a copy of the protocol slice in network.processSettings #585

Merged
merged 2 commits into from
Sep 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion network/ipfs_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "v0.10.1"
"version": "v0.10.2"
}