web: 'Invite someone' page with the command to join through this node

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeFqV96dVeBX94inzcgZKw
This commit is contained in:
2026-11-19 10:43:46 +01:00
co-authored by Claude Sonnet 5.5
parent f83a305ee5
commit 85c26addf7
9 changed files with 220 additions and 3 deletions
+3
View File
@@ -206,6 +206,8 @@ export interface GatewayOptions {
regions?: string[];
/** The device certificate the node reports in /status; unset, it says nothing (an older node). */
cert?: { expires_at: number; can_renew: boolean };
/** The addresses the node says others can join through; unset, it says nothing (an older node). */
share?: string[];
}
export async function startGateway(opts: GatewayOptions): Promise<Gateway> {
@@ -294,6 +296,7 @@ export async function startGateway(opts: GatewayOptions): Promise<Gateway> {
listings: opts.listings.length,
difficulty: DIFFICULTY,
message_difficulty: 6,
...(opts.share ? { share: opts.share } : {}),
...(opts.cert ? { cert_expires_at: opts.cert.expires_at, can_renew: opts.cert.can_renew } : {}),
});
}