mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-30 23:53:52 +03:00
use StartSSHServer instead of DisableSSH
DisableSSH doesn't check the kind of ssh server to use, so that was wrong. Use StartSSHServer instead.
This commit is contained in:
parent
e3570ae45d
commit
e721c5cf86
1 changed files with 1 additions and 1 deletions
|
@ -337,7 +337,7 @@ func NewContext() {
|
|||
log.Fatal(4, "Fail to create '%s': %v", SSHRootPath, err)
|
||||
}
|
||||
checkDefault := SSH_PUBLICKEY_CHECK_KEYGEN
|
||||
if DisableSSH {
|
||||
if StartSSHServer {
|
||||
checkDefault = SSH_PUBLICKEY_CHECK_NATIVE
|
||||
}
|
||||
SSHPublicKeyCheck = sec.Key("SSH_PUBLICKEY_CHECK").MustString(checkDefault)
|
||||
|
|
Loading…
Reference in a new issue