Skip to content

Commit 3c13130

Browse files
authored
Respect SSH.KeygenPath option when calculating ssh key fingerprints (#27536)
Fixes #27535
1 parent ac4ae35 commit 3c13130

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/asymkey/ssh_key_fingerprint.go

Lines changed: 1 addition & 1 deletion
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)