diff --git a/core/node/groups.go b/core/node/groups.go index 2c312524f72..5eb222ba5ac 100644 --- a/core/node/groups.go +++ b/core/node/groups.go @@ -7,7 +7,7 @@ import ( "time" blockstore "github.com/ipfs/go-ipfs-blockstore" - "github.com/ipfs/go-ipfs-config" + config "github.com/ipfs/go-ipfs-config" util "github.com/ipfs/go-ipfs-util" peer "github.com/libp2p/go-libp2p-core/peer" pubsub "github.com/libp2p/go-libp2p-pubsub" @@ -108,7 +108,7 @@ func LibP2P(bcfg *BuildCfg, cfg *config.Config) fx.Option { maybeProvide(libp2p.BandwidthCounter, !cfg.Swarm.DisableBandwidthMetrics), maybeProvide(libp2p.NatPortMap, !cfg.Swarm.DisableNatPortMap), - maybeProvide(libp2p.AutoRealy, cfg.Swarm.EnableAutoRelay), + maybeProvide(libp2p.AutoRelay, cfg.Swarm.EnableAutoRelay), maybeProvide(libp2p.QUIC, cfg.Experimental.QUIC), maybeInvoke(libp2p.AutoNATService(cfg.Experimental.QUIC), cfg.Swarm.EnableAutoNATService), connmgr, diff --git a/core/node/libp2p/relay.go b/core/node/libp2p/relay.go index b9e8afa49cc..59fe1cdd14d 100644 --- a/core/node/libp2p/relay.go +++ b/core/node/libp2p/relay.go @@ -21,4 +21,4 @@ func Relay(disable, enableHop bool) func() (opts Libp2pOpts, err error) { } } -var AutoRealy = simpleOpt(libp2p.EnableAutoRelay()) +var AutoRelay = simpleOpt(libp2p.EnableAutoRelay())