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:
@@ -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 } : {}),
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user