mirror of
https://github.com/tailscale/tailscale.git
synced 2025-03-28 12:02:23 +00:00
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:
parent
3b451509dd
commit
958782c737
@ -100,9 +100,6 @@ func runUp(ctx context.Context, args []string) error {
|
|||||||
|
|
||||||
if distro.Get() == distro.Synology {
|
if distro.Get() == distro.Synology {
|
||||||
notSupported := "not yet supported on Synology; see https://github.com/tailscale/tailscale/issues/451"
|
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 {
|
if upArgs.acceptRoutes {
|
||||||
return errors.New("--accept-routes is " + notSupported)
|
return errors.New("--accept-routes is " + notSupported)
|
||||||
}
|
}
|
||||||
|
@ -335,6 +335,9 @@ func shouldWrapNetstack() bool {
|
|||||||
}
|
}
|
||||||
return v
|
return v
|
||||||
}
|
}
|
||||||
|
if distro.Get() == distro.Synology {
|
||||||
|
return true
|
||||||
|
}
|
||||||
switch runtime.GOOS {
|
switch runtime.GOOS {
|
||||||
case "windows", "darwin":
|
case "windows", "darwin":
|
||||||
// Enable on Windows and tailscaled-on-macOS (this doesn't
|
// Enable on Windows and tailscaled-on-macOS (this doesn't
|
||||||
|
Loading…
x
Reference in New Issue
Block a user