mirror of
https://github.com/go-gitea/gitea
synced 2024-12-25 01:54:26 +00:00
Backport #27536 by @picsel2 Fixes #27535 Co-authored-by: Sebastian Grabowski <sebastian@grabel.de>
This commit is contained in:
parent
29d3949271
commit
63587a4aef
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user