Choose even the first region in the browser; update Docker and Nix
A node now starts without any region (it only helps others connect, and prints a hint). The owner's sign-in link leads straight to the Regions page when none is followed, visitors get a notice instead of an empty search, and status always lists regions as an array. The Docker image no longer pins Bonn, the NixOS module no longer requires regions, and the VM test now starts without any, chooses the first region over the API and checks it survives a restart. README and the init hint follow. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AeFqV96dVeBX94inzcgZKw
This commit is contained in:
+3
-1
@@ -192,6 +192,8 @@ export interface GatewayOptions {
|
||||
/** For a requested listing id, answer with this other listing instead. */
|
||||
swap?: unknown;
|
||||
statusFails?: boolean;
|
||||
/** The regions the node reports; default ["u1x"]. */
|
||||
regions?: string[];
|
||||
}
|
||||
|
||||
export async function startGateway(opts: GatewayOptions): Promise<Gateway> {
|
||||
@@ -252,7 +254,7 @@ export async function startGateway(opts: GatewayOptions): Promise<Gateway> {
|
||||
peer_id: "12D3KooWTest",
|
||||
author: "a".repeat(64),
|
||||
device: "b".repeat(64),
|
||||
regions: ["u1x"],
|
||||
regions: opts.regions ?? ["u1x"],
|
||||
peers: 2,
|
||||
listings: opts.listings.length,
|
||||
difficulty: DIFFICULTY,
|
||||
|
||||
Reference in New Issue
Block a user