Skip to content

Commit

Permalink
Respect SSH.KeygenPath option when calculating ssh key fingerprints (#…
Browse files Browse the repository at this point in the history
…27536) (#27551)

Backport #27536 by @picsel2

Fixes #27535

Co-authored-by: Sebastian Grabowski <[email protected]>
  • Loading branch information
GiteaBot and picsel2 authored Oct 10, 2023
1 parent 29d3949 commit 63587a4
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 63587a4

Please sign in to comment.