ipnlocal: enable allow LAN for android (#11709)

Updates tailscale/corp#18984
Updates tailscale/corp#18202
pull/11721/head
kari-ts 8 months ago committed by GitHub
parent 976d3c7b5f
commit 1cd51f95c7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -4235,7 +4235,7 @@ func (b *LocalBackend) routerConfig(cfg *wgcfg.Config, prefs ipn.PrefsView, oneC
b.logf("failed to discover interface ips: %v", err)
}
switch runtime.GOOS {
case "linux", "windows", "darwin", "ios":
case "linux", "windows", "darwin", "ios", "android":
rs.LocalRoutes = internalIPs // unconditionally allow access to guest VM networks
if prefs.ExitNodeAllowLANAccess() {
rs.LocalRoutes = append(rs.LocalRoutes, externalIPs...)

Loading…
Cancel
Save