Skip to content

Commit

Permalink
feat(modp2p): listen on WebTransport by default (#2660)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wondertan authored Sep 6, 2023
1 parent c146a0a commit a5e01b9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nodebuilder/p2p/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,18 @@ type Config struct {
func DefaultConfig(tp node.Type) Config {
return Config{
ListenAddresses: []string{
"/ip4/0.0.0.0/udp/2121/quic-v1/webtransport",
"/ip6/::/udp/2121/quic-v1/webtransport",
"/ip4/0.0.0.0/udp/2121/quic-v1",
"/ip6/::/udp/2121/quic-v1",
"/ip4/0.0.0.0/tcp/2121",
"/ip6/::/tcp/2121",
},
AnnounceAddresses: []string{},
NoAnnounceAddresses: []string{
"/ip4/127.0.0.1/udp/2121/quic-v1/webtransport",
"/ip4/0.0.0.0/udp/2121/quic-v1/webtransport",
"/ip6/::/udp/2121/quic-v1/webtransport",
"/ip4/0.0.0.0/udp/2121/quic-v1",
"/ip4/127.0.0.1/udp/2121/quic-v1",
"/ip6/::/udp/2121/quic-v1",
Expand Down

0 comments on commit a5e01b9

Please sign in to comment.