|
|
@ -15,6 +15,7 @@ import ( |
|
|
|
tls "github.com/libp2p/go-libp2p/p2p/security/tls" |
|
|
|
quic "github.com/libp2p/go-libp2p/p2p/transport/quic" |
|
|
|
"github.com/libp2p/go-libp2p/p2p/transport/tcp" |
|
|
|
libp2pwebrtc "github.com/libp2p/go-libp2p/p2p/transport/webrtc" |
|
|
|
ws "github.com/libp2p/go-libp2p/p2p/transport/websocket" |
|
|
|
webtransport "github.com/libp2p/go-libp2p/p2p/transport/webtransport" |
|
|
|
"github.com/prometheus/client_golang/prometheus" |
|
|
@ -47,6 +48,7 @@ var DefaultTransports = ChainOptions( |
|
|
|
Transport(quic.NewTransport), |
|
|
|
Transport(ws.New), |
|
|
|
Transport(webtransport.New), |
|
|
|
Transport(libp2pwebrtc.New), |
|
|
|
) |
|
|
|
|
|
|
|
// DefaultPrivateTransports are the default libp2p transports when a PSK is supplied.
|
|
|
@ -82,9 +84,11 @@ var DefaultListenAddrs = func(cfg *Config) error { |
|
|
|
"/ip4/0.0.0.0/tcp/0", |
|
|
|
"/ip4/0.0.0.0/udp/0/quic-v1", |
|
|
|
"/ip4/0.0.0.0/udp/0/quic-v1/webtransport", |
|
|
|
"/ip4/0.0.0.0/udp/0/webrtc-direct", |
|
|
|
"/ip6/::/tcp/0", |
|
|
|
"/ip6/::/udp/0/quic-v1", |
|
|
|
"/ip6/::/udp/0/quic-v1/webtransport", |
|
|
|
"/ip6/::/udp/0/webrtc-direct", |
|
|
|
} |
|
|
|
listenAddrs := make([]multiaddr.Multiaddr, 0, len(addrs)) |
|
|
|
for _, s := range addrs { |
|
|
|