Skip to content

Commit

Permalink
Update host.go
Browse files Browse the repository at this point in the history
Recent changes break the DHT peer discovery when testing on local and private nets.
libp2p/go-libp2p-kad-dht#569
  • Loading branch information
iNDicat0r committed Apr 10, 2020
1 parent 3c35719 commit 0faa54c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libp2p-host/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func main() {
libp2p.NATPortMap(),
// Let this host use the DHT to find other hosts
libp2p.Routing(func(h host.Host) (routing.PeerRouting, error) {
idht, err = dht.New(ctx, h)
idht, err = dht.New(ctx, h, dht.Mode(dht.ModeServer))
return idht, err
}),
// Let this host use relays and advertise itself on relays if
Expand Down

0 comments on commit 0faa54c

Please sign in to comment.