summaryrefslogtreecommitdiffhomepage
path: root/control/controlhttp/controlhttpserver/controlhttpserver.go
diff options
context:
space:
mode:
authorFran Bull <fran@tailscale.com>2026-03-25 13:37:26 -0700
committerfranbull <fran@tailscale.com>2026-03-25 19:28:33 -0700
commit2d5962f5249848168e259a01781ce9a5f1310246 (patch)
tree97fb1d7d8c8cf6b24f56783151fbbec3141d58ad /control/controlhttp/controlhttpserver/controlhttpserver.go
parent330a17b7d76158dba2611642d6549168fb6d55f1 (diff)
downloadtailscale-2d5962f5249848168e259a01781ce9a5f1310246.tar.xz
tailscale-2d5962f5249848168e259a01781ce9a5f1310246.zip
feature/conn25,ipn/ipnext,ipn/ipnlocal: add ExtraRouterConfigRoutes hook
conn25 needs to add routes to the operating system to direct handling of the addresses in the magic IP range to the tailscale0 TUN and tailscaled. The way we do this for exit nodes and VIP services is that we add routes to the Routes field of router.Config, and then the config is passed to the WireGuard engine Reconfig. conn25 is implemented as an ipnext.Extension and so this commit adds a hook to ipnext.Hooks to allow any extension to provide routes to the config. The hook if provided is called in routerConfigLocked, similarly to exit nodes and VIP services. Fixes tailscale/corp#38123 Signed-off-by: Fran Bull <fran@tailscale.com>
Diffstat (limited to 'control/controlhttp/controlhttpserver/controlhttpserver.go')
0 files changed, 0 insertions, 0 deletions