Skip to content

Commit 63587a4

Browse files
GiteaBotpicsel2
andauthored
Respect SSH.KeygenPath option when calculating ssh key fingerprints (#27536) (#27551)
Backport #27536 by @picsel2 Fixes #27535 Co-authored-by: Sebastian Grabowski <[email protected]>
1 parent 29d3949 commit 63587a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/asymkey/ssh_key_fingerprint.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func CalcFingerprint(publicKeyContent string) (string, error) {
8181
fnName, fp string
8282
err error
8383
)
84-
if setting.SSH.StartBuiltinServer {
84+
if len(setting.SSH.KeygenPath) == 0 {
8585
fnName = "calcFingerprintNative"
8686
fp, err = calcFingerprintNative(publicKeyContent)
8787
} else {

0 commit comments

Comments
 (0)