*Allow host to be overridable for now as liberta has a different websocket path
This commit is contained in:
parent
29c4d5f4f8
commit
3a164422e9
|
@ -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"],
|
||||
|
|
Loading…
Reference in New Issue