Skip to content

Commit

Permalink
go-peer: webrtc-direct on ipv6 (#205)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel N <[email protected]>
  • Loading branch information
2color and 2color authored Nov 1, 2024
1 parent 370dbba commit d28e52c
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions go-peer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,14 @@ func main() {
libp2p.Transport(quicTransport.NewTransport),
libp2p.Transport(webtransport.New),
libp2p.Transport(webrtc.New),
libp2p.ListenAddrStrings("/ip4/0.0.0.0/udp/9095/quic-v1", "/ip4/0.0.0.0/udp/9095/quic-v1/webtransport"),
libp2p.ListenAddrStrings("/ip4/0.0.0.0/udp/9095/webrtc-direct"),
libp2p.ListenAddrStrings("/ip6/::/udp/9095/quic-v1", "/ip6/::/udp/9095/quic-v1/webtransport"),
libp2p.ListenAddrStrings(
"/ip4/0.0.0.0/udp/9095/quic-v1",
"/ip4/0.0.0.0/udp/9095/quic-v1/webtransport",
"/ip4/0.0.0.0/udp/9095/webrtc-direct",
"/ip6/::/udp/9095/quic-v1",
"/ip6/::/udp/9095/quic-v1/webtransport",
"/ip6/::/udp/9095/webrtc-direct",
),
)

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

0 comments on commit d28e52c

Please sign in to comment.