summaryrefslogtreecommitdiffhomepage
path: root/control/controlknobs/controlknobs.go
diff options
context:
space:
mode:
authorNick Khyl <nickk@tailscale.com>2024-05-02 14:36:26 -0500
committerNick Khyl <1761190+nickkhyl@users.noreply.github.com>2024-05-06 15:44:44 -0500
commitcaa3d7594fecb3227abcc97b8f7679798acdb587 (patch)
treebeb523f7aa27e379f58a7afa44e078b01ef55fe9 /control/controlknobs/controlknobs.go
parentce8969d82b5df9eff4f3ad71f6781c73e4481bf0 (diff)
downloadtailscale-caa3d7594fecb3227abcc97b8f7679798acdb587.tar.xz
tailscale-caa3d7594fecb3227abcc97b8f7679798acdb587.zip
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>
Diffstat (limited to 'control/controlknobs/controlknobs.go')
0 files changed, 0 insertions, 0 deletions