diff --git a/main.js b/main.js index e106693..0fed6b4 100644 --- a/main.js +++ b/main.js @@ -135,10 +135,12 @@ async function writeElements(ev, elements) { async function createInvite() { if (globalAccountID === null) throw new Error('account not loaded') - const { url } = await p(peer.invite.createForFriend)({ + let { url } = await p(peer.invite.createForFriend)({ hubs: 1, id: globalAccountID, }) + // if the hub is on localhost, it's probably on the default port of 3000, so let's make things a bit easier for the user + if (url.indexOf('0.0.0.0') !== -1) url = url.replace("0.0.0.0", "0.0.0.0:3000") return url }