*dht missing on connect call
This commit is contained in:
parent
cc2def1901
commit
395edfe75a
|
@ -32,7 +32,11 @@ export class DHT {
|
|||
|
||||
public async connect(pubkey: string): Promise<Socket> {
|
||||
await this.setup();
|
||||
const [resp, err] = await callModule(DHT_MODULE, "connect", { pubkey });
|
||||
const dht = !this.useDefaultDht ? this.id : undefined;
|
||||
const [resp, err] = await callModule(DHT_MODULE, "connect", {
|
||||
pubkey,
|
||||
dht,
|
||||
});
|
||||
if (err) {
|
||||
throw new Error(err);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue