From 6680976b502c8e1b733eac1591c53257effcc3a5 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Thu, 11 Feb 2021 20:10:07 -0800 Subject: [PATCH] cmd/tailscaled: pick automatic tun device name on darwin --- cmd/tailscaled/tailscaled.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/tailscaled/tailscaled.go b/cmd/tailscaled/tailscaled.go index 64e2723bb..4ad437c22 100644 --- a/cmd/tailscaled/tailscaled.go +++ b/cmd/tailscaled/tailscaled.go @@ -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" }