From 5d5f96c7f23b0375b8a42b503a9a073b54f0365c Mon Sep 17 00:00:00 2001 From: Sebastian Grabowski Date: Tue, 10 Oct 2023 02:01:46 +0200 Subject: [PATCH] Respect SSH.KeygenPath option when calculating ssh key fingerprints (#27536) Fixes #27535 --- models/asymkey/ssh_key_fingerprint.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/asymkey/ssh_key_fingerprint.go b/models/asymkey/ssh_key_fingerprint.go index 8a8d4fce153d0..2d6af0e3d6cdf 100644 --- a/models/asymkey/ssh_key_fingerprint.go +++ b/models/asymkey/ssh_key_fingerprint.go @@ -81,7 +81,7 @@ func CalcFingerprint(publicKeyContent string) (string, error) { fnName, fp string err error ) - if setting.SSH.StartBuiltinServer { + if len(setting.SSH.KeygenPath) == 0 { fnName = "calcFingerprintNative" fp, err = calcFingerprintNative(publicKeyContent) } else {