-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gateway overrides /version with information about IPFS #5422
Comments
Thank you for reporting this @swedneck! It sure looks like a bug: makes it impossible to expose asset named Anyone familiar whats the story behind |
Yes, this does look like a bug. Having the version endpoint on the gateway isn't but it shouldn't be available when we pivot to a dnslink-based website. |
👍 It's probably easy to fix by simply reordering the http handlers in https://github.com/ipfs/go-ipfs/blob/78a32f2e48db69a1d517da29121ef5a51b2a8015/cmd/ipfs/daemon.go#L543-L549 by moving |
@lgierth I just tried compiling it with that change and it works! |
move VersionOption after GatewayOption to fix #5422
Version information:
0.4.17
Type:
Bug (probably)
Description:
When using a domain with a dnslink, any request to example.com/version will return information about the IPFS node running on the gateway, instead of potential information about the webapp's version.
Examples: https://riot.swedneck.xyz/version, https://https://docs.ipfs.io/version, http://explore.ipld.io/version
This breaks the version checking function of the Riot matrix client, which otherwise works perfectly via IPFS.
The text was updated successfully, but these errors were encountered: