提交 4294a5fb 作者: Steven Allen

explicitly enable the default transports

Otherwise, enabling the QUIC transport will disable the default ones

fixes #5416

License: MIT
Signed-off-by: 's avatarSteven Allen <steven@stebalien.com>
上级 1b4972b4
......@@ -249,6 +249,9 @@ func (n *IpfsNode) startOnlineServices(ctx context.Context, routingOption Routin
libp2pOpts = append(libp2pOpts, libp2p.EnableRelay(opts...))
}
// explicitly enable the default transports
libp2pOpts = append(libp2pOpts, libp2p.DefaultTransports)
if cfg.Experimental.QUIC {
libp2pOpts = append(libp2pOpts, libp2p.Transport(quic.NewTransport))
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论