Skip to content

Commit 5d5f96c

Browse files
picsel2GiteaBot
authored andcommitted
Respect SSH.KeygenPath option when calculating ssh key fingerprints (go-gitea#27536)
Fixes go-gitea#27535
1 parent 9a64a24 commit 5d5f96c

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)