Skip to content

Commit

Permalink
feat(node/p2p): enable quic by default with the config
Browse files Browse the repository at this point in the history
  • Loading branch information
Wondertan committed Jul 18, 2022
1 parent 7414cec commit 8d56e55
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions node/p2p/p2p.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,16 @@ type Config struct {
func DefaultConfig() Config {
return Config{
ListenAddresses: []string{
"/ip4/0.0.0.0/udp/2121/quic",
"/ip6/::/udp/2121/quic",
"/ip4/0.0.0.0/tcp/2121",
"/ip6/::/tcp/2121",
},
AnnounceAddresses: []string{},
NoAnnounceAddresses: []string{
"/ip4/0.0.0.0/udp/2121/quic",
"/ip4/127.0.0.1/tcp/2121/quic",
"/ip6/::/udp/2121/quic",
"/ip4/0.0.0.0/tcp/2121",
"/ip4/127.0.0.1/tcp/2121",
"/ip6/::/tcp/2121",
Expand Down

0 comments on commit 8d56e55

Please sign in to comment.