-
-
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
Enable Gateway on localhost IPv6 (ip4+ip6 by default) #5905
Comments
We should definitely listen on both. Mind making a PR? |
...also to JS IPFS 🙏 |
For what it’s worth, I’ve been running my local gateway on [::1] for almost a year with no issues. |
@Stebalien We can include it in upcoming migration, what do you think? |
SGTM (iff the user is already listening on 127.0.0.1). |
@lidel Any update on this? |
No update. Browser use case ended up having a better solution in the form of subdomain gateway on Something we would still want to do is to detect when the system does not support ip4 and then use ip6 instead, but this is low priority since we had no user reports that this is a real issue. |
Version information:
0.4.18
Type:
enhancement
Description:
What? How do we feel about migrating default Gateway config to listen on ipv6 as well?
For now, this can be enabled manually via:
$ ipfs config --json Addresses.Gateway '["/ip4/127.0.0.1/tcp/8080","/ip6/::1/tcp/8080"]'
Why? It is a cosmetic change that enables much shorter URLs for local gateway and shift focus towards IPFS paths:
How?
Current default:
Proposed change (arrays are supported since ipfs/go-ipfs-config#11):
Additional notes:
socket: address family not supported by protocol
error on systems without ipv6 we go-ipfs could detect runtime without ipv6 and ignore multiaddrs starting with/ip6/
, as suggested in IPv6 error on daemon startup #1675 (comment)The text was updated successfully, but these errors were encountered: