wgengine/router: add the Tailscale ULA route on darwin.

Signed-off-by: Maisem Ali <maisem@tailscale.com>
bradfitz/macos_progress
Maisem Ali 4 years ago committed by Maisem Ali
parent c748c20fba
commit 4f3203556d

@ -135,7 +135,7 @@ func (r *userspaceBSDRouter) Set(cfg *Config) (reterr error) {
newRoutes := make(map[netaddr.IPPrefix]struct{}) newRoutes := make(map[netaddr.IPPrefix]struct{})
for _, route := range cfg.Routes { for _, route := range cfg.Routes {
if route == tsaddr.TailscaleULARange() { if runtime.GOOS != "darwin" && route == tsaddr.TailscaleULARange() {
// Because we added the interface address as a /48 above, // Because we added the interface address as a /48 above,
// the kernel already created the Tailscale ULA route // the kernel already created the Tailscale ULA route
// implicitly. We mustn't try to add/delete it ourselves. // implicitly. We mustn't try to add/delete it ourselves.

Loading…
Cancel
Save