diff options
author | Sebastian Grabowski <sebastian@grabel.de> | 2023-10-10 02:01:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-10 00:01:46 +0000 |
commit | 3c131307ac44247e65516135c626e437f089ca9f (patch) | |
tree | da8d6a18bb9d66bd7b1fb1eb1bf0d3b4c3d1337e | |
parent | ac4ae355429e4f06161a7cfba537a5b105b516f0 (diff) | |
download | gitea-3c131307ac44247e65516135c626e437f089ca9f.tar.gz gitea-3c131307ac44247e65516135c626e437f089ca9f.zip |
Respect SSH.KeygenPath option when calculating ssh key fingerprints (#27536)
Fixes #27535
-rw-r--r-- | models/asymkey/ssh_key_fingerprint.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/asymkey/ssh_key_fingerprint.go b/models/asymkey/ssh_key_fingerprint.go index 8a8d4fce15..2d6af0e3d6 100644 --- a/models/asymkey/ssh_key_fingerprint.go +++ b/models/asymkey/ssh_key_fingerprint.go @@ -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 { |