mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-20 08:41:19 -08:00
In controlknobs.Knobs, each atomic field represents a knob controlled by the existence of a capability in the node’s CapMap. This patch adds a doc comment for each field referencing which nodecap.Cap sets it. This patch also cleans up UpdateFromNodeAttributes to unify the CapMap lookup with the setting of the appropriate Knobs field. Previously, it was easier to accidentally mismatch them because they were split in two places. Updates #cleanup Change-Id: I329b0c5732f1c13f2e0d8609c35f42ad645b6bd7 Signed-off-by: Simon Law <[email protected]>