summaryrefslogtreecommitdiffhomepage
path: root/control/controlknobs/controlknobs.go
diff options
context:
space:
mode:
authorAdrian Dewhurst <adrian@tailscale.com>2024-06-03 16:49:55 -0400
committerAdrian Dewhurst <sailor@sailorfrag.net>2024-06-04 12:25:45 -0400
commitcf9f507d478ea72eafac695d0533f66db28ac79d (patch)
tree4d51aa6e23d478a87acbce7b9f5cc1e06374b5b6 /control/controlknobs/controlknobs.go
parent1dc3136a24042bc5adeb54d26caf67c3309bebc5 (diff)
downloadtailscale-cf9f507d478ea72eafac695d0533f66db28ac79d.tar.xz
tailscale-cf9f507d478ea72eafac695d0533f66db28ac79d.zip
ipn/ipnlocal: only build allowed suggested node list once
Rather than building a new suggested exit node set every time, compute it once on first use. Currently, syspolicy ensures that values do not change without a restart anyway. Since the set is being constructed in a separate func now, the test code that manipulates syspolicy can live there, and the TestSuggestExitNode can now run in parallel with other tests because it does not have global dependencies. Updates tailscale/corp#19681 Change-Id: Ic4bb40ccc91b671f9e542bd5ba9c96f942081515 Signed-off-by: Adrian Dewhurst <adrian@tailscale.com>
Diffstat (limited to 'control/controlknobs/controlknobs.go')
0 files changed, 0 insertions, 0 deletions