mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-25 19:15:34 +00:00
286c6ce27c
Instead of just falling back to making a TCP query to an upstream DNS server when the UDP query returns a truncated query, also start a TCP query in parallel with the UDP query after a given race timeout. This ensures that if the upstream DNS server does not reply over UDP (or if the response packet is blocked, or there's an error), we can still make queries if the server replies to TCP queries. This also adds a new package, util/race, to contain the logic required for racing two different functions and returning the first non-error answer. Updates tailscale/corp#14809 Signed-off-by: Andrew Dunham <andrew@du.nham.ca> Change-Id: I4311702016c1093b1beaa31b135da1def6d86316 |
||
---|---|---|
.. | ||
childproc | ||
debug.go | ||
depaware.txt | ||
generate.go | ||
install_darwin.go | ||
install_windows.go | ||
manifest_windows_386.syso | ||
manifest_windows_amd64.syso | ||
manifest_windows_arm64.syso | ||
proxy.go | ||
required_version.go | ||
sigpipe.go | ||
ssh.go | ||
taildrop.go | ||
tailscaled_bird.go | ||
tailscaled_notwindows.go | ||
tailscaled_test.go | ||
tailscaled_windows.go | ||
tailscaled.defaults | ||
tailscaled.go | ||
tailscaled.openrc | ||
tailscaled.service | ||
windows-manifest.xml | ||
with_cli.go |