You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/cmd/tailscaled
Nick Khyl caa3d7594f ipn/ipnlocal, net/tsdial: plumb routes into tsdial and use them in UserDial
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>
7 months ago
..
childproc all: update copyright and license headers 2 years ago
debug.go net/netmon, add: add netmon.State type alias of interfaces.State 7 months ago
depaware.txt ipn/ipnlocal, net/tsdial: plumb routes into tsdial and use them in UserDial 7 months ago
generate.go cmd/mkmanifest, cmd/tailscale, cmd/tailscaled: remove Windows arm32 resources from OSS 2 years ago
install_darwin.go all: update copyright and license headers 2 years ago
install_windows.go all: update copyright and license headers 2 years ago
manifest_windows_386.syso cmd/{tailscale,tailscaled}: embed manifest into Windows binaries 2 years ago
manifest_windows_amd64.syso cmd/{tailscale,tailscaled}: embed manifest into Windows binaries 2 years ago
manifest_windows_arm64.syso cmd/{tailscale,tailscaled}: embed manifest into Windows binaries 2 years ago
proxy.go all: update copyright and license headers 2 years ago
required_version.go all: require Go 1.21 1 year ago
sigpipe.go all: adjust some build tags for plan9 1 year ago
ssh.go all: update copyright and license headers 2 years ago
taildrop.go taildrop: remove breaking abstraction layers for apple (#10728) 11 months ago
tailscaled.defaults cmd/tailscaled: rename relaynode reference in defaults file comment 5 years ago
tailscaled.go net/netns, net/dns/resolver, etc: make netmon required in most places 7 months ago
tailscaled.openrc tstest/integration/vms: use an in-process logcatcher (#2360) 3 years ago
tailscaled.service cmd/tailscaled: move cleanup to an implicit action during startup 8 months ago
tailscaled_bird.go all: update copyright and license headers 2 years ago
tailscaled_notwindows.go all: update copyright and license headers 2 years ago
tailscaled_test.go util/linuxfw: remove yet-unused code to fix linux/arm64 crash 1 year ago
tailscaled_windows.go ipn/local: log OS-specific diagnostic information as JSON (#11700) 7 months ago
windows-manifest.xml cmd/{tailscale,tailscaled}: embed manifest into Windows binaries 2 years ago
with_cli.go all: update copyright and license headers 2 years ago