Open
Description
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:
$ ipfs config --json Addresses.Gateway
/ip4/127.0.0.1/tcp/8080
Proposed change (arrays are supported since ipfs/go-ipfs-config#11):
$ ipfs config --json Addresses.Gateway
[
"/ip4/127.0.0.1/tcp/8080",
"/ip6/::1/tcp/8080"
]
Additional notes:
- To avoid
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) - Investigating vanity hostnames for localhost HTTP gateway: Hostnames for localhost HTTP gateway in-web-browsers#109
- tl;dr
AFAIK only
127.0.0.1
and::1
are whitelisted by browser vendors (eg. firefox #903966) whilelocalhost
is not (that is why Companion uses raw IP)
- tl;dr