Skip to content

Commit 4903832

Browse files
authored
fix: no implicit filtering of proxied IPNI results (#85)
1 parent 94cc5f7 commit 4903832

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ The following emojis are used to highlight certain changes:
2323

2424
### Security
2525

26+
## [v0.5.3]
27+
28+
### Fixed
29+
30+
- default config: restore proxying of all results from IPNI at `cid.contact` [#83](https://github.com/ipfs/someguy/pull/85)
31+
2632
## [v0.5.2]
2733

2834
### Changed

server.go

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
"github.com/CAFxX/httpcompression"
1717
sddaemon "github.com/coreos/go-systemd/v22/daemon"
1818
"github.com/felixge/httpsnoop"
19-
"github.com/ipfs/boxo/routing/http/client"
19+
drclient "github.com/ipfs/boxo/routing/http/client"
2020
"github.com/ipfs/boxo/routing/http/server"
2121
logging "github.com/ipfs/go-log/v2"
2222
"github.com/libp2p/go-libp2p"
@@ -215,7 +215,12 @@ func getCombinedRouting(endpoints []string, dht routing.Routing) (router, error)
215215
var routers []router
216216

217217
for _, endpoint := range endpoints {
218-
drclient, err := client.New(endpoint, client.WithUserAgent(userAgent))
218+
drclient, err := drclient.New(endpoint,
219+
drclient.WithUserAgent("someguy/"+buildVersion()),
220+
// override default filters, we want all results from remote endpoint, then someguy's user can use IPIP-484 to narrow them down
221+
drclient.WithProtocolFilter([]string{}),
222+
drclient.WithDisabledLocalFiltering(true),
223+
)
219224
if err != nil {
220225
return nil, err
221226
}

version.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ var versionJSON []byte
1313

1414
var name = "someguy"
1515
var version = buildVersion()
16-
var userAgent = name + "/" + version
1716

1817
func buildVersion() string {
1918
// Read version from embedded JSON file.

version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"version": "v0.5.2"
2+
"version": "v0.5.3"
33
}

0 commit comments

Comments
 (0)