This repository was archived by the owner on Feb 12, 2024. It is now read-only.
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
Support exposing API/Gateway on multiple multiaddrs #1852
Closed
Description
go-ipfs supports listening on multiple multiaddrs if an array is provided instead of a single multiaddr.
Both snippets are valid in go-ipfs:
ipv4+ipv6
"Addresses": {
"API": [
"/ip4/127.0.0.1/tcp/5002",
"/ip6/::1/tcp/5002"
],
"Gateway": [
"/ip4/127.0.0.1/tcp/9090",
"/ip6/::1/tcp/9090"
],
ipv4 only
"Addresses": {
"API": "/ip4/127.0.0.1/tcp/5002",
"Gateway": "/ip4/127.0.0.1/tcp/9090",
Unfortunately js-ipfs does not support arrays, only a single address can be defined ATM.
cc #1563, ipfs/kubo#5905