Drop the flag that said the info API was not served on windows

It is served there now, on a pipe, so nothing set the flag any more. It
was also a plain bool written by the first reconcile and by the reload
callback, which was the review's point about it.

- infoSupported, errInfoUnsupported, the Rebind check and the reload
  branch that warned once go

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Matt RichardsonandClaude Fable 5.1 committed 2026-10-21 12:26:57 -04:00
1 parent 3fb29d6444
commit aa04cc446a
4 files changed
-28

No files matched your search

-12
View File
@@ -200,10 +200,6 @@ func reportRebind(l *slog.Logger, what, old, want string, err error, now string)
func wireInfo(ctx context.Context, l *slog.Logger, c *config.C, reg *commands.Registry) *InfoServer {
srv := NewInfoServer(l, reg)
// Said once per process rather than on every reload: it is a platform limit, not
// something the next reload could fix.
saidUnsupported := false
reconcile := func(c *config.C) {
cfg, err := infoConfigFrom(c)
if err != nil {
@@ -219,14 +215,6 @@ func wireInfo(ctx context.Context, l *slog.Logger, c *config.C, reg *commands.Re
return
}
if !infoSupported {
if !saidUnsupported {
l.Warn("Local info API is enabled in the config but is not served on this platform yet", "key", InfoEnabledKey)
saidUnsupported = true
}
return
}
// The two endpoints speak different protocols; one socket cannot be both. Caught
// here, from the configured paths, because listen's own answer, that the socket is
// in use by another nebula, would send the operator looking for a second process.