From e721c5cf86c4d693a84bcf48d3a8a531efd24aaf Mon Sep 17 00:00:00 2001
From: Gibheer <gibheer+git@zero-knowledge.org>
Date: Tue, 23 Feb 2016 15:43:52 +0100
Subject: [PATCH] use StartSSHServer instead of DisableSSH

DisableSSH doesn't check the kind of ssh server to use, so that was
wrong. Use StartSSHServer instead.
---
 modules/setting/setting.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index 25b9d8590..f3d4349be 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)