Skip to content

Commit 2ebe0a8

Browse files
committed
fix: whitelist /p2p on implicit path gateways
/p2p path is used by experimental p2p http proxy: https://github.com/ipfs/go-ipfs/blob/v0.4.23/docs/experimental-features.md#p2p-http-proxy License: MIT Signed-off-by: Marcin Rataj <[email protected]>
1 parent f1f7062 commit 2ebe0a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/corehttp/hostname.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
)
1919

2020
var pathGatewaySpec = config.GatewaySpec{
21-
Paths: []string{ipfsPathPrefix, ipnsPathPrefix, "/api/", "/version"},
21+
Paths: []string{ipfsPathPrefix, ipnsPathPrefix, "/api", "/p2p", "/version"},
2222
UseSubdomains: false,
2323
}
2424

0 commit comments

Comments
 (0)