diff options
author | Giteabot <teabot@gitea.io> | 2023-10-10 15:37:58 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-10 07:37:58 +0000 |
commit | 63587a4aef69367fee28540e8e083af9b49c8035 (patch) | |
tree | 7fb825a10b7404b44d4ba17dfe376eca7c6c9387 /models | |
parent | 29d3949271bd221e9bdef455d187f1246a4b4cc3 (diff) | |
download | gitea-63587a4aef69367fee28540e8e083af9b49c8035.tar.gz gitea-63587a4aef69367fee28540e8e083af9b49c8035.zip |
Respect SSH.KeygenPath option when calculating ssh key fingerprints (#27536) (#27551)
Backport #27536 by @picsel2
Fixes #27535
Co-authored-by: Sebastian Grabowski <sebastian@grabel.de>
Diffstat (limited to 'models')
-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 { |