Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
Giulio2002 committed Dec 2, 2024
1 parent 0e05084 commit 26f806d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cl/sentinel/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,11 @@ func buildOptions(cfg *SentinelConfig, s *Sentinel) ([]libp2p.Option, error) {
libp2p.Transport(libp2pquic.NewTransport),
libp2p.Muxer("/mplex/6.7.0", mplex.DefaultTransport),
libp2p.DefaultMuxers,
libp2p.NATPortMap(),
libp2p.Ping(false),
}
if cfg.EnableUPnP {
options = append(options, libp2p.NATPortMap())
}

options = append(options, libp2p.Security(noise.ID, noise.New), libp2p.DisableRelay())

Expand Down

0 comments on commit 26f806d

Please sign in to comment.