packages/hyprspace: switch to DHT client mode

This commit is contained in:
Max Headroom 2022-12-31 17:05:45 +01:00
parent a01c1a5eea
commit 51cfa3b74d

View file

@ -158,7 +158,7 @@ func CreateNode(ctx context.Context, inputKey []byte, port int, handler network.
dhtOut, err = dht.New( dhtOut, err = dht.New(
ctx, ctx,
node, node,
dht.Mode(dht.ModeAuto), dht.Mode(dht.ModeClient),
dht.BootstrapPeers(staticBootstrapPeers...), dht.BootstrapPeers(staticBootstrapPeers...),
dht.BootstrapPeersFunc(func() []peer.AddrInfo { dht.BootstrapPeersFunc(func() []peer.AddrInfo {
extraBootstrapNodes := []string{} extraBootstrapNodes := []string{}