Skip to content

Commit

Permalink
Respect SSH.KeygenPath option when calculating ssh key fingerprints (g…
Browse files Browse the repository at this point in the history
  • Loading branch information
picsel2 authored Oct 10, 2023
1 parent ac4ae35 commit 3c13130
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/asymkey/ssh_key_fingerprint.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3c13130

Please sign in to comment.