@@ -24,7 +24,6 @@ import (
2424 internalCrypto "github.com/mudler/edgevpn/pkg/crypto"
2525
2626 "github.com/libp2p/go-libp2p"
27- "github.com/libp2p/go-libp2p/core/connmgr"
2827 "github.com/libp2p/go-libp2p/core/crypto"
2928 "github.com/libp2p/go-libp2p/core/host"
3029 "github.com/libp2p/go-libp2p/core/peer"
@@ -198,6 +197,10 @@ var defaults = []struct {
198197 fallback : func (cfg * libp2p.Config ) bool { return ! cfg .RelayCustom },
199198 opt : libp2p .DefaultEnableRelay ,
200199 },
200+ {
201+ fallback : func (cfg * libp2p.Config ) bool { return cfg .ResourceManager == nil },
202+ opt : libp2p .DefaultResourceManager ,
203+ },
201204 //{
202205 // fallback: func(cfg *libp2p.Config) bool { return cfg.ResourceManager == nil },
203206 // opt: libp2p.DefaultResourceManager,
@@ -206,7 +209,8 @@ var defaults = []struct {
206209 fallback : func (cfg * libp2p.Config ) bool { return cfg .ConnManager == nil },
207210 // Filling the ConnManager is required, even if its a null one as libp2p will call functions of the
208211 // libp2p.Config.ConnManager so we need to have it not nil
209- opt : libp2p .ConnectionManager (connmgr.NullConnMgr {}),
212+ opt : libp2p .DefaultConnectionManager ,
213+ //opt: libp2p.ConnectionManager(connmgr.NullConnMgr{}),
210214 },
211215 {
212216 fallback : func (cfg * libp2p.Config ) bool {
0 commit comments