mirror of
https://github.com/tailscale/tailscale.git
synced 2025-03-23 17:51:05 +00:00

The previous code used a lot of whole-function variables and shared behavior that only triggered based on prior action from a single codepath. Instead of that, move the small amounts of "shared" code into each switch case. Signed-off-by: David Anderson <danderson@tailscale.com>