From 3a164422e9743f75c47e3b3663c884e23ed62ecc Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 18 Jan 2023 03:55:19 -0500 Subject: [PATCH] *Allow host to be overridable for now as liberta has a different websocket path --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 9b4dc58..878d969 100644 --- a/src/index.ts +++ b/src/index.ts @@ -16,7 +16,7 @@ interface SignedPeerResponse extends Peer { export default async ( pubkey: Buffer, - options = {} + options = { host: "irc.liberta.casa" } ): Promise => { let ircPubKey = await ed.getPublicKey(ed.utils.randomPrivateKey()); @@ -24,7 +24,7 @@ export default async ( undefined, bytesToHex(hash160(ircPubKey)).substring(0, 15), { - host: "irc.liberta.casa", + host: options.host, port: 6697, secure: true, channels: ["#lumeweb"],