ssh/tailssh: add Tailscale SSH (server) support on FreeBSD

Change-Id: I607194b6ef99205e777f3df93a74ffe1a2e0344c
Signed-off-by: Pat Maddox <pat@ratiopbc.com>
This commit is contained in:
Pat Maddox
2022-11-01 00:49:37 +00:00
committed by Brad Fitzpatrick
parent e3a66e4d2f
commit 9bf3ef4167
10 changed files with 43 additions and 25 deletions

View File

@@ -2226,6 +2226,7 @@ func (b *LocalBackend) checkSSHPrefsLocked(p *ipn.Prefs) error {
if !envknob.UseWIPCode() {
return errors.New("The Tailscale SSH server is disabled on macOS tailscaled by default. To try, set env TAILSCALE_USE_WIP_CODE=1")
}
case "freebsd":
default:
return errors.New("The Tailscale SSH server is not supported on " + runtime.GOOS)
}

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build linux || (darwin && !ios)
//go:build linux || (darwin && !ios) || freebsd
package ipnlocal

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build ios || (!linux && !darwin)
//go:build ios || (!linux && !darwin && !freebsd)
package ipnlocal