*Bootstrap argument needs to be passed to DHT, not swarm
This commit is contained in:
parent
be22b771f5
commit
14edcdc6ce
|
@ -32,10 +32,12 @@ export async function start() {
|
|||
const address = bootstrap.address() as AddressInfo;
|
||||
node = new Hyperswarm({
|
||||
keyPair,
|
||||
dht: new DHT({ keyPair }),
|
||||
dht: new DHT({
|
||||
keyPair,
|
||||
bootstrap: [{ host: address.address, port: address.port }].concat(
|
||||
require("@hyperswarm/dht/lib/constants").BOOTSTRAP_NODES
|
||||
),
|
||||
}),
|
||||
});
|
||||
|
||||
// @ts-ignore
|
||||
|
|
Loading…
Reference in New Issue