ipn/ipnlocal: fix reporting of active ipnext extensions

We borked this in 30a89ad378
and started including skipped extensions (e.g., conn25 when
TAILSCALE_USE_WIP_CODE != 1) in the list of active ones.

This doesn't have any impact other than on logging, though.

Updates #cleanup

Signed-off-by: Nick Khyl <nickk@tailscale.com>
This commit is contained in:
Nick Khyl
2026-07-01 15:35:06 -07:00
committed by Nick Khyl
parent a8f3c861a4
commit df40abc610
+4 -2
View File
@@ -7,7 +7,6 @@ import (
"context"
"errors"
"fmt"
"maps"
"reflect"
"slices"
"strings"
@@ -269,7 +268,10 @@ func (h *ExtensionHost) init() {
// Report active extensions to the log.
// TODO(nickkhyl): update client metrics to include the active/failed/skipped extensions.
h.mu.Lock()
extensionNames := slices.Collect(maps.Keys(h.extensionsByName))
var extensionNames []string
for _, ext := range h.activeExtensions {
extensionNames = append(extensionNames, ext.Name())
}
h.mu.Unlock()
h.logf("active extensions: %v", strings.Join(extensionNames, ", "))