From 3c131307ac44247e65516135c626e437f089ca9f 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 8a8d4fce1..2d6af0e3d 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 {