mirror of
https://github.com/tailscale/tailscale.git
synced 2025-03-17 02:41:00 +00:00

Updates tailscale/corp#22332 This PR changes the way we determine the current hostname on Darwin && !iOS builds. We now use the native NSHost.currentHost API to get the hostname, instead of the os.Hostname() call which in Go uses `sysctl kern.hostname`. In Sequoia, this appears to always return `Mac.home`, (`home` comes from my LAN). Signed-off-by: Andrea Gottardo <andrea@gottardo.me>