Signed-off-by: mudler <[email protected]>
@@ -284,6 +284,8 @@ func (c Config) ToOpts(l *logger.Logger) ([]node.Option, []vpn.Option, error) {
}
libp2pOpts = append(libp2pOpts, libp2p.ConnectionManager(cm))
+ } else {
+ llger.Infof("connmanager disabled")
if !c.Limit.Enable || runtime.GOOS == "darwin" {
@@ -123,7 +123,7 @@ func (e *Node) genHost(ctx context.Context) (host.Host, error) {
opts = append(opts, FallbackDefaults)
- return libp2p.New(opts...)
+ return libp2p.NewWithoutDefaults(opts...)
// FallbackDefaults applies default options to the libp2p node if and only if no