cmd/{tailscale,tailscaled}: use netstack for subnet routing on Synology

Updates #707
Fixes #451
Fixes tailscale/tailscale-synology#52 (just make it work by default)

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick 2021-04-09 18:42:21 -07:00
parent 3b451509dd
commit 958782c737
2 changed files with 3 additions and 3 deletions

View File

@ -100,9 +100,6 @@ func runUp(ctx context.Context, args []string) error {
if distro.Get() == distro.Synology {
notSupported := "not yet supported on Synology; see https://github.com/tailscale/tailscale/issues/451"
if upArgs.advertiseRoutes != "" {
return errors.New("--advertise-routes is " + notSupported)
}
if upArgs.acceptRoutes {
return errors.New("--accept-routes is " + notSupported)
}

View File

@ -335,6 +335,9 @@ func shouldWrapNetstack() bool {
}
return v
}
if distro.Get() == distro.Synology {
return true
}
switch runtime.GOOS {
case "windows", "darwin":
// Enable on Windows and tailscaled-on-macOS (this doesn't