Enable ssh server on freebsd

This commit is contained in:
Viktor Liu
2025-01-11 02:36:11 +01:00
parent 649bfb236b
commit d31543cb12
6 changed files with 24 additions and 16 deletions
+1 -1
View File
@@ -699,7 +699,7 @@ func (e *Engine) updateSSH(sshConf *mgmProto.SSHConfig) error {
} else {
if sshConf.GetSshEnabled() {
if runtime.GOOS == "windows" || runtime.GOOS == "freebsd" {
if runtime.GOOS == "windows" {
log.Warnf("running SSH server on %s is not supported", runtime.GOOS)
return nil
}
+1 -1
View File
@@ -72,7 +72,7 @@ func TestMain(m *testing.M) {
func TestEngine_SSH(t *testing.T) {
// todo resolve test execution on freebsd
if runtime.GOOS == "windows" || runtime.GOOS == "freebsd" {
if runtime.GOOS == "windows" {
t.Skip("skipping TestEngine_SSH")
}