tailcfg: define a type for NodeCapability

Instead of untyped string, add a type to identify these.

Updates #cleanup

Signed-off-by: Maisem Ali <[email protected]>
This commit is contained in:
Maisem Ali authored and Maisem Ali committed 2023-09-17 13:16:29 -07:00
1 parent 3d37328af6
commit a61caea911
18 files changed
+100 -90

No files matched your search

+1 -1
View File
@@ -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
}