diff --git a/CHANGELOG.md b/CHANGELOG.md index 6536ed6..f2201cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,12 @@ The following emojis are used to highlight certain changes: ### Security +## [v0.5.3] + +### Fixed + +- default config: restore proxying of all results from IPNI at `cid.contact` [#83](https://github.com/ipfs/someguy/pull/85) + ## [v0.5.2] ### Changed diff --git a/server.go b/server.go index 985d11d..f7c955b 100644 --- a/server.go +++ b/server.go @@ -16,7 +16,7 @@ import ( "github.com/CAFxX/httpcompression" sddaemon "github.com/coreos/go-systemd/v22/daemon" "github.com/felixge/httpsnoop" - "github.com/ipfs/boxo/routing/http/client" + drclient "github.com/ipfs/boxo/routing/http/client" "github.com/ipfs/boxo/routing/http/server" logging "github.com/ipfs/go-log/v2" "github.com/libp2p/go-libp2p" @@ -215,7 +215,12 @@ func getCombinedRouting(endpoints []string, dht routing.Routing) (router, error) var routers []router for _, endpoint := range endpoints { - drclient, err := client.New(endpoint, client.WithUserAgent(userAgent)) + drclient, err := drclient.New(endpoint, + drclient.WithUserAgent("someguy/"+buildVersion()), + // override default filters, we want all results from remote endpoint, then someguy's user can use IPIP-484 to narrow them down + drclient.WithProtocolFilter([]string{}), + drclient.WithDisabledLocalFiltering(true), + ) if err != nil { return nil, err } diff --git a/version.go b/version.go index c59c5a1..aaaec3e 100644 --- a/version.go +++ b/version.go @@ -13,7 +13,6 @@ var versionJSON []byte var name = "someguy" var version = buildVersion() -var userAgent = name + "/" + version func buildVersion() string { // Read version from embedded JSON file. diff --git a/version.json b/version.json index cdebeab..ef97c9c 100644 --- a/version.json +++ b/version.json @@ -1,3 +1,3 @@ { - "version": "v0.5.2" + "version": "v0.5.3" }