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

Signed-off-by: Maisem Ali <maisem@tailscale.com>
This commit is contained in:
Maisem Ali 2021-04-15 16:37:46 -07:00 committed by Maisem Ali
parent c748c20fba
commit 4f3203556d

View File

@ -135,7 +135,7 @@ func (r *userspaceBSDRouter) Set(cfg *Config) (reterr error) {
newRoutes := make(map[netaddr.IPPrefix]struct{})
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,
// the kernel already created the Tailscale ULA route
// implicitly. We mustn't try to add/delete it ourselves.