//go:build darwin || ios package main import "tailscale.com/net/netmon" // updateDefaultRouteInterface pushes the OS-observed default-route // interface name into netmon's package-level cache // (tailscale.com/net/netmon/defaultroute_darwin.go), which Apple builds // consult before falling back to the AF_ROUTE guess. Tailscale's own // Apple clients feed this from an NWPathMonitor in Swift (upstream PR // #10680) because passive route monitoring is unreliable inside app // processes; our embedding does the same via // TailscaleUpdateDefaultRouteInterface. Package-level state: safe to // call whether or not the node is running (an empty name is an upstream // no-op), and the freshest value simply wins the next default-route // lookup. func updateDefaultRouteInterface(name string) { netmon.UpdateLastKnownDefaultRouteInterface(name) }