Skip to content

Commit 63587a4

Browse files
GiteaBotpicsel2
andauthored
Respect SSH.KeygenPath option when calculating ssh key fingerprints (go-gitea#27536) (go-gitea#27551)
Backport go-gitea#27536 by @picsel2 Fixes go-gitea#27535 Co-authored-by: Sebastian Grabowski <[email protected]>
1 parent 29d3949 commit 63587a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/asymkey/ssh_key_fingerprint.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func CalcFingerprint(publicKeyContent string) (string, error) {
8181
fnName, fp string
8282
err error
8383
)
84-
if setting.SSH.StartBuiltinServer {
84+
if len(setting.SSH.KeygenPath) == 0 {
8585
fnName = "calcFingerprintNative"
8686
fp, err = calcFingerprintNative(publicKeyContent)
8787
} else {

0 commit comments

Comments
 (0)