mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-26 12:27:06 +00: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:
		| @@ -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) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Gibheer
					Gibheer