ipn/ipnlocal: support exit node local access switching on darwin.

Signed-off-by: Maisem Ali <maisem@tailscale.com>
pull/2146/head
Maisem Ali 4 years ago committed by Maisem Ali
parent 2919b3e3e6
commit f482321f67

@ -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 {

Loading…
Cancel
Save