|
|
@@ -194,10 +194,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 {
|
|
|
@@ -217,14 +213,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.
|