diff options
Diffstat (limited to 'modules/setting/setting.go')
-rw-r--r-- | modules/setting/setting.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go index 25b9d8590e..f3d4349be9 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -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) |