cmd/tailscaled: pick automatic tun device name on darwin

This commit is contained in:
Brad Fitzpatrick 2021-02-11 20:10:07 -08:00
parent 88ab0173a7
commit 6680976b50
1 changed files with 4 additions and 0 deletions

View File

@ -52,6 +52,10 @@ func defaultTunName() string {
return "tun"
case "windows":
return "Tailscale"
case "darwin":
// "utun" is recognized by wireguard-go/tun/tun_darwin.go
// as a magic value that uses/creates any free number.
return "utun"
}
return "tailscale0"
}