Fix #346: Enable NAT hole punching for libp2p host
License: MIT Signed-off-by: Hector Sanjuan <code@hector.link>
This commit is contained in:
parent
059fcdaa42
commit
47f7fe7d92
|
@ -32,9 +32,7 @@ func NewClusterHost(ctx context.Context, cfg *Config) (host.Host, error) {
|
|||
libp2p.Identity(cfg.PrivateKey),
|
||||
libp2p.ListenAddrs([]ma.Multiaddr{cfg.ListenAddr}...),
|
||||
libp2p.PrivateNetwork(prot),
|
||||
// FIXME: Enable when libp2p >= 5.0.16
|
||||
// https://github.com/libp2p/go-libp2p/pull/293
|
||||
//libp2p.NATPortMap(),
|
||||
libp2p.NATPortMap(),
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user