Skip to content

Commit

Permalink
fix ForceReachability dependency injection
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann committed Oct 30, 2021
1 parent 5cffbd7 commit 1741a58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/node/groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func LibP2P(bcfg *BuildCfg, cfg *config.Config) fx.Option {
fx.Provide(libp2p.Transports(cfg.Swarm.Transports)),
fx.Invoke(libp2p.StartListening(cfg.Addresses.Swarm)),
fx.Invoke(libp2p.SetupDiscovery(cfg.Discovery.MDNS.Enabled, cfg.Discovery.MDNS.Interval)),
fx.Invoke(libp2p.ForceReachability(cfg.Internal.Libp2pForceReachability)),
fx.Provide(libp2p.ForceReachability(cfg.Internal.Libp2pForceReachability)),

fx.Provide(libp2p.Security(!bcfg.DisableEncryptedConnections, cfg.Swarm.Transports)),

Expand Down

0 comments on commit 1741a58

Please sign in to comment.