Commit 5834054a authored by vyzo's avatar vyzo
Browse files

fix typo

parent 0600392e
...@@ -257,7 +257,7 @@ func NATManager(nm config.NATManagerC) Option { ...@@ -257,7 +257,7 @@ func NATManager(nm config.NATManagerC) Option {
// This will both clear any configured listen addrs and prevent libp2p from // This will both clear any configured listen addrs and prevent libp2p from
// applying the default listen address option. It also disables relay, unless the // applying the default listen address option. It also disables relay, unless the
// user explicitly specifies with an option, as the transport creates an implicit // user explicitly specifies with an option, as the transport creates an implicit
// listen address that would make the node diable through any relay it was connected to. // listen address that would make the node dialable through any relay it was connected to.
var NoListenAddrs = func(cfg *Config) error { var NoListenAddrs = func(cfg *Config) error {
cfg.ListenAddrs = []ma.Multiaddr{} cfg.ListenAddrs = []ma.Multiaddr{}
if !cfg.RelayCustom { if !cfg.RelayCustom {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment