From f482321f67f21a1d3bc07e780c9421181c3183b8 Mon Sep 17 00:00:00 2001 From: Maisem Ali Date: Wed, 16 Jun 2021 19:20:05 +0500 Subject: [PATCH] ipn/ipnlocal: support exit node local access switching on darwin. Signed-off-by: Maisem Ali --- ipn/ipnlocal/local.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipn/ipnlocal/local.go b/ipn/ipnlocal/local.go index 01354d085..a2741aab5 100644 --- a/ipn/ipnlocal/local.go +++ b/ipn/ipnlocal/local.go @@ -2089,7 +2089,7 @@ func (b *LocalBackend) routerConfig(cfg *wgcfg.Config, prefs *ipn.Prefs) *router if !default6 { rs.Routes = append(rs.Routes, ipv6Default) } - if runtime.GOOS == "linux" { + if runtime.GOOS == "linux" || runtime.GOOS == "darwin" { // Only allow local lan access on linux machines for now. ips, _, err := interfaceRoutes() if err != nil {