Skip to content

Commit

Permalink
feat: bind to ipv6 interfaces (#148)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel N <2color@users.noreply.github.com>
  • Loading branch information
2color and 2color committed May 10, 2024
1 parent 6636f2b commit 415cfe8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions go-peer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ func main() {
libp2p.Transport(quicTransport.NewTransport),
libp2p.Transport(webtransport.New),
libp2p.ListenAddrStrings("/ip4/0.0.0.0/udp/9095/quic-v1", "/ip4/0.0.0.0/udp/9095/quic-v1/webtransport"),
libp2p.ListenAddrStrings("/ip6/::/udp/9095/quic-v1", "/ip6/::/udp/9095/quic-v1/webtransport"),
)

// create a new libp2p Host with lots of options
Expand Down

0 comments on commit 415cfe8

Please sign in to comment.