ipn: set RouteAll=true by default for new accounts on iOS and Android (#16110)

fixes tailscale/tailscale#16082

RouteAll should be true by default on iOS and Android.

Signed-off-by: Jonathan Nobels <jonathan@tailscale.com>
(cherry picked from commit 842df378037579f35f996c9f3bb89dc53ba8e720)
This commit is contained in:
Jonathan Nobels 2025-05-28 10:08:06 -04:00 committed by Jonathan Nobels
parent 0b36774ff9
commit 914acdc8b4

View File

@ -721,9 +721,10 @@ func (p *Prefs) ControlURLOrDefault() string {
// of the platform it's running on.
func (p *Prefs) DefaultRouteAll(goos string) bool {
switch goos {
case "windows":
case "windows", "android", "ios":
return true
case "darwin":
// Only true for macAppStore and macsys, false for darwin tailscaled.
return version.IsSandboxedMacOS()
default:
return false