mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 13:05:46 +00:00
cmd/tailscaled: pick automatic tun device name on darwin
This commit is contained in:
parent
88ab0173a7
commit
6680976b50
@ -52,6 +52,10 @@ func defaultTunName() string {
|
|||||||
return "tun"
|
return "tun"
|
||||||
case "windows":
|
case "windows":
|
||||||
return "Tailscale"
|
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"
|
return "tailscale0"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user