Fix #346: Enable NAT hole punching for libp2p host

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
This commit is contained in:
Hector Sanjuan 2018-05-27 17:47:46 +02:00
parent 059fcdaa42
commit 47f7fe7d92

View File

@ -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(),
)
}