*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;
|
const address = bootstrap.address() as AddressInfo;
|
||||||
node = new Hyperswarm({
|
node = new Hyperswarm({
|
||||||
keyPair,
|
keyPair,
|
||||||
dht: new DHT({ keyPair }),
|
dht: new DHT({
|
||||||
bootstrap: [{ host: address.address, port: address.port }].concat(
|
keyPair,
|
||||||
require("@hyperswarm/dht/lib/constants").BOOTSTRAP_NODES
|
bootstrap: [{ host: address.address, port: address.port }].concat(
|
||||||
),
|
require("@hyperswarm/dht/lib/constants").BOOTSTRAP_NODES
|
||||||
|
),
|
||||||
|
}),
|
||||||
});
|
});
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
|
|
Loading…
Reference in New Issue