*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 (
|
export default async (
|
||||||
pubkey: Buffer,
|
pubkey: Buffer,
|
||||||
options = {}
|
options = { host: "irc.liberta.casa" }
|
||||||
): Promise<boolean | Peer> => {
|
): Promise<boolean | Peer> => {
|
||||||
let ircPubKey = await ed.getPublicKey(ed.utils.randomPrivateKey());
|
let ircPubKey = await ed.getPublicKey(ed.utils.randomPrivateKey());
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ export default async (
|
||||||
undefined,
|
undefined,
|
||||||
bytesToHex(hash160(ircPubKey)).substring(0, 15),
|
bytesToHex(hash160(ircPubKey)).substring(0, 15),
|
||||||
{
|
{
|
||||||
host: "irc.liberta.casa",
|
host: options.host,
|
||||||
port: 6697,
|
port: 6697,
|
||||||
secure: true,
|
secure: true,
|
||||||
channels: ["#lumeweb"],
|
channels: ["#lumeweb"],
|
||||||
|
|
Loading…
Reference in New Issue