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/net/tsdial
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>
2 months ago
..
dnsmap.go all: remove LenIter, use Go 1.22 range-over-int instead 4 months ago
dnsmap_test.go types/netmap: remove NetworkMap.{Addresses,MachineStatus} 9 months ago
dohclient.go all: update copyright and license headers 1 year ago
dohclient_test.go all: update copyright and license headers 1 year ago
peerapi_macios_ext.go all: cleanup unused code, part 1 (#10661) 6 months ago
tsdial.go ipn/ipnlocal, net/tsdial: plumb routes into tsdial and use them in UserDial 2 months ago