mirror of
https://github.com/tailscale/tailscale.git
synced 2026-09-22 03:25:16 -04:00
tsp is a protocol library and should not care about the system's routing table, interfaces, or how to reach DERP for bootstrap DNS. Those are tailscaled concerns. Without an explicit DNSCache, ts2021 built a resolver whose LookupIPFallback did bootstrap DNS over DERP whenever the first dial to control failed, and that path also crashed on tsp's nil netmon.Monitor. Provide a plain dnscache.Resolver with no fallback so a failed dial is just a failed dial. Updates tailscale/corp#47865 Change-Id: If62ddb90139d5590ca3e0e3f54235bbbc0d8aec2 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>