*address does not fit the addressinfo type

This commit is contained in:
Derrick Hammer 2022-12-31 13:28:59 -05:00
parent 14edcdc6ce
commit 2c22c88e30
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 3 deletions

View File

@ -13,7 +13,6 @@ import sodium from "sodium-universal";
import b4a from "b4a";
import log from "../log.js";
import { getKeyPair } from "../lib/seed.js";
import { AddressInfo } from "net";
const LUMEWEB = b4a.from("lumeweb");
export const LUMEWEB_TOPIC_HASH = b4a.allocUnsafe(32);
@ -29,12 +28,12 @@ export async function start() {
const bootstrap = DHT.bootstrapper(49737, "0.0.0.0");
await bootstrap.ready();
const address = bootstrap.address() as AddressInfo;
const address = bootstrap.address();
node = new Hyperswarm({
keyPair,
dht: new DHT({
keyPair,
bootstrap: [{ host: address.address, port: address.port }].concat(
bootstrap: [{ host: address.host, port: address.port }].concat(
require("@hyperswarm/dht/lib/constants").BOOTSTRAP_NODES
),
}),