mirror of
https://github.com/go-gitea/gitea.git
synced 2024-12-28 08:26:35 +00:00
Respect SSH.KeygenPath option when calculating ssh key fingerprints (#27536)
Fixes #27535
This commit is contained in:
parent
ac4ae35542
commit
3c131307ac
@ -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…
Reference in New Issue
Block a user