Update #3206 Signed-off-by: David Anderson <danderson@tailscale.com>
To be reused in various other tools.