Respect SSH.KeygenPath option when calculating ssh key fingerprints (#27536)

Fixes #27535
pull/26960/merge
Sebastian Grabowski 1 year ago committed by GitHub
parent ac4ae35542
commit 3c131307ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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 {

Loading…
Cancel
Save