Przeglądaj źródła

use StartSSHServer instead of DisableSSH

DisableSSH doesn't check the kind of ssh server to use, so that was
wrong. Use StartSSHServer instead.
Gibheer 10 lat temu
rodzic
commit
e721c5cf86
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      modules/setting/setting.go

+ 1 - 1
modules/setting/setting.go

@@ -337,7 +337,7 @@ func NewContext() {
 		log.Fatal(4, "Fail to create '%s': %v", SSHRootPath, err)
 		log.Fatal(4, "Fail to create '%s': %v", SSHRootPath, err)
 	}
 	}
 	checkDefault := SSH_PUBLICKEY_CHECK_KEYGEN
 	checkDefault := SSH_PUBLICKEY_CHECK_KEYGEN
-	if DisableSSH {
+	if StartSSHServer {
 		checkDefault = SSH_PUBLICKEY_CHECK_NATIVE
 		checkDefault = SSH_PUBLICKEY_CHECK_NATIVE
 	}
 	}
 	SSHPublicKeyCheck = sec.Key("SSH_PUBLICKEY_CHECK").MustString(checkDefault)
 	SSHPublicKeyCheck = sec.Key("SSH_PUBLICKEY_CHECK").MustString(checkDefault)