summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGibheer <gibheer+git@zero-knowledge.org>2016-02-23 15:43:52 +0100
committerGibheer <gibheer+git@zero-knowledge.org>2016-02-23 15:43:52 +0100
commite721c5cf86c4d693a84bcf48d3a8a531efd24aaf (patch)
treed18d0b93d936219a1e828cb30efbc88a63bc055c
parente3570ae45dc8e9f53ec5c0d3a6d5b29fb7574bdd (diff)
downloadgitea-e721c5cf86c4d693a84bcf48d3a8a531efd24aaf.tar.gz
gitea-e721c5cf86c4d693a84bcf48d3a8a531efd24aaf.zip
use StartSSHServer instead of DisableSSH
DisableSSH doesn't check the kind of ssh server to use, so that was wrong. Use StartSSHServer instead.
-rw-r--r--modules/setting/setting.go2
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)