Skip to content

Commit

Permalink
Merge pull request #39 from ipfs-shipyard/enable-hole-punching
Browse files Browse the repository at this point in the history
fix: enable hole punching for test host
  • Loading branch information
2color authored Aug 5, 2024
2 parents 52de0d6 + caf1397 commit a5b6cf2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@ func newDaemon(ctx context.Context, acceleratedDHT bool) (*daemon, error) {
}

return &daemon{h: h, dht: d, dhtMessenger: pm, createTestHost: func() (host.Host, error) {
return libp2p.New(libp2p.ConnectionGater(&privateAddrFilterConnectionGater{}))
return libp2p.New(
libp2p.ConnectionGater(&privateAddrFilterConnectionGater{}),
libp2p.EnableHolePunching(),
)
}}, nil
}

Expand Down

0 comments on commit a5b6cf2

Please sign in to comment.