mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 04:55:31 +00:00
ipn/ipnlocal: prevent attempting to run SSH on Synology for now
On DSM7 as a non-root user it'll run into problems. And we haven't tested on DSM6, even though it might work, but I doubt it. Updates #3802 Updates tailscale/corp#5468 Change-Id: I75729042e4788f03f9eb82057482a44b319f04f3 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
parent
2bac8b6013
commit
fbc079d82d
@ -1833,7 +1833,10 @@ func (b *LocalBackend) checkPrefsLocked(p *ipn.Prefs) error {
|
|||||||
if p.RunSSH {
|
if p.RunSSH {
|
||||||
switch runtime.GOOS {
|
switch runtime.GOOS {
|
||||||
case "linux":
|
case "linux":
|
||||||
// okay
|
if distro.Get() == distro.Synology && !envknob.UseWIPCode() {
|
||||||
|
return errors.New("The Tailscale SSH server does not run on Synology.")
|
||||||
|
}
|
||||||
|
// otherwise okay
|
||||||
case "darwin":
|
case "darwin":
|
||||||
// okay only in tailscaled mode for now.
|
// okay only in tailscaled mode for now.
|
||||||
if version.IsSandboxedMacOS() {
|
if version.IsSandboxedMacOS() {
|
||||||
|
Loading…
Reference in New Issue
Block a user