*Allow host to be overridable for now as liberta has a different websocket path

This commit is contained in:
Derrick Hammer 2023-01-18 03:55:19 -05:00
parent 29c4d5f4f8
commit 3a164422e9
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ interface SignedPeerResponse extends Peer {
export default async (
pubkey: Buffer,
options = {}
options = { host: "irc.liberta.casa" }
): Promise<boolean | Peer> => {
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"],