mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 13:05:46 +00:00
caa3d7594f
We'd like to use tsdial.Dialer.UserDial instead of SystemDial for DNS over TCP. This is primarily necessary to properly dial internal DNS servers accessible over Tailscale and subnet routes. However, to avoid issues when switching between Wi-Fi and cellular, we need to ensure that we don't retain connections to any external addresses on the old interface. Therefore, we need to determine which dialer to use internally based on the configured routes. This plumbs routes and localRoutes from router.Config to tsdial.Dialer, and updates UserDial to use either the peer dialer or the system dialer, depending on the network address and the configured routes. Updates tailscale/corp#18725 Fixes #4529 Signed-off-by: Nick Khyl <nickk@tailscale.com> |
||
---|---|---|
.. | ||
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 |