diff options
| author | Maisem Ali <maisem@tailscale.com> | 2023-09-06 10:17:25 -0700 |
|---|---|---|
| committer | Maisem Ali <maisem@gmail.com> | 2023-09-17 13:16:29 -0700 |
| commit | a61caea9111b8304414be768a89063721a5ae46c (patch) | |
| tree | 0fc870dbf973ef9dcf81cfb66437b8c88364a003 /control/controlknobs/controlknobs.go | |
| parent | 3d37328af60b50a335b7c470dcb33035afffe356 (diff) | |
| download | tailscale-a61caea9111b8304414be768a89063721a5ae46c.tar.xz tailscale-a61caea9111b8304414be768a89063721a5ae46c.zip | |
tailcfg: define a type for NodeCapability
Instead of untyped string, add a type to identify these.
Updates #cleanup
Signed-off-by: Maisem Ali <maisem@tailscale.com>
Diffstat (limited to 'control/controlknobs/controlknobs.go')
| -rw-r--r-- | control/controlknobs/controlknobs.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/control/controlknobs/controlknobs.go b/control/controlknobs/controlknobs.go index b5b49e150..50b0298a9 100644 --- a/control/controlknobs/controlknobs.go +++ b/control/controlknobs/controlknobs.go @@ -48,7 +48,7 @@ type Knobs struct { // UpdateFromNodeAttributes updates k (if non-nil) based on the provided self // node attributes (Node.Capabilities). -func (k *Knobs) UpdateFromNodeAttributes(selfNodeAttrs []string) { +func (k *Knobs) UpdateFromNodeAttributes(selfNodeAttrs []tailcfg.NodeCapability) { if k == nil { return } |
