1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-24 08:57:03 -05:00

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

Fixes #27535
This commit is contained in:
Sebastian Grabowski 2023-10-10 02:01:46 +02:00 committed by GitHub
parent ac4ae35542
commit 3c131307ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -81,7 +81,7 @@ func CalcFingerprint(publicKeyContent string) (string, error) {
fnName, fp string fnName, fp string
err error err error
) )
if setting.SSH.StartBuiltinServer { if len(setting.SSH.KeygenPath) == 0 {
fnName = "calcFingerprintNative" fnName = "calcFingerprintNative"
fp, err = calcFingerprintNative(publicKeyContent) fp, err = calcFingerprintNative(publicKeyContent)
} else { } else {