|
|
@ -1861,6 +1861,8 @@ func (b *LocalBackend) routerConfig(cfg *wgcfg.Config, prefs *ipn.Prefs) *router
|
|
|
|
if !default6 {
|
|
|
|
if !default6 {
|
|
|
|
rs.Routes = append(rs.Routes, ipv6Default)
|
|
|
|
rs.Routes = append(rs.Routes, ipv6Default)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if runtime.GOOS == "linux" {
|
|
|
|
|
|
|
|
// Only allow local lan access on linux machines for now.
|
|
|
|
ips, _, err := interfaceRoutes()
|
|
|
|
ips, _, err := interfaceRoutes()
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
b.logf("failed to discover interface ips: %v", err)
|
|
|
|
b.logf("failed to discover interface ips: %v", err)
|
|
|
@ -1873,6 +1875,7 @@ func (b *LocalBackend) routerConfig(cfg *wgcfg.Config, prefs *ipn.Prefs) *router
|
|
|
|
rs.Routes = append(rs.Routes, ips.Prefixes()...)
|
|
|
|
rs.Routes = append(rs.Routes, ips.Prefixes()...)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
rs.Routes = append(rs.Routes, netaddr.IPPrefix{
|
|
|
|
rs.Routes = append(rs.Routes, netaddr.IPPrefix{
|
|
|
|
IP: tsaddr.TailscaleServiceIP(),
|
|
|
|
IP: tsaddr.TailscaleServiceIP(),
|
|
|
|