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:
+7
-2
@@ -65,11 +65,16 @@ type RegionKeeper interface {
|
||||
// in them, so this keeps "follow the world" from being one click.
|
||||
const MaxRegions = 20
|
||||
|
||||
// regions is what the node follows now, never nil: the UI reads it as a list.
|
||||
func (s *server) regions() []string {
|
||||
r := s.Regions
|
||||
if s.RegionKeeper != nil {
|
||||
return s.RegionKeeper.Regions()
|
||||
r = s.RegionKeeper.Regions()
|
||||
}
|
||||
return s.Regions
|
||||
if r == nil {
|
||||
return []string{}
|
||||
}
|
||||
return r
|
||||
}
|
||||
|
||||
type server struct {
|
||||
|
||||
Reference in New Issue
Block a user