From ca7098926ffcdb0cf067c90542899238587b4a1c Mon Sep 17 00:00:00 2001 From: "@RubenKelevra" Date: Thu, 21 May 2020 23:45:44 +0200 Subject: [PATCH] go-ipfs-config: default config: add QUIC listening ports + quic to mars.i.ipfs.io fixes 1) of https://github.com/ipfs/go-ipfs/issues/7343 --- config/bootstrap_peers.go | 3 ++- config/init.go | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config/bootstrap_peers.go b/config/bootstrap_peers.go index 91d01457307..a8064d255a7 100644 --- a/config/bootstrap_peers.go +++ b/config/bootstrap_peers.go @@ -19,7 +19,8 @@ var DefaultBootstrapAddresses = []string{ "/dnsaddr/bootstrap.libp2p.io/p2p/QmQCU2EcMqAqQPR2i9bChDtGNJchTbq5TbXJJ16u19uLTa", "/dnsaddr/bootstrap.libp2p.io/p2p/QmbLHAnMoJPWSCR5Zhtx6BHJX9KiKNN6tpvbUcqanj75Nb", "/dnsaddr/bootstrap.libp2p.io/p2p/QmcZf59bWwK5XFi76CZX8cbJ4BhTzzA3gU1ZjYZcYW3dwt", - "/ip4/104.131.131.82/tcp/4001/p2p/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ", // mars.i.ipfs.io + "/ip4/104.131.131.82/tcp/4001/p2p/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ", // mars.i.ipfs.io + "/ip4/104.131.131.82/quic/4001/quic/p2p/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ", // mars.i.ipfs.io } // ErrInvalidPeerAddr signals an address is not a valid peer address. diff --git a/config/init.go b/config/init.go index 2a9c631d62a..f43b4fe1ec8 100644 --- a/config/init.go +++ b/config/init.go @@ -107,8 +107,9 @@ func addressesConfig() Addresses { return Addresses{ Swarm: []string{ "/ip4/0.0.0.0/tcp/4001", - // "/ip4/0.0.0.0/udp/4002/utp", // disabled for now. "/ip6/::/tcp/4001", + "/ip4/0.0.0.0/udp/4001/quic", + "/ip6/::/udp/4001/quic", }, Announce: []string{}, NoAnnounce: []string{},