fix: correct debian version check on 5.2.15 configuration generation (#199)

fixes #196
This commit is contained in:
GoldenKiwi 2023-09-01 08:34:28 +02:00 committed by GitHub
parent 27edec6d5f
commit 6e79fcd00a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,7 +75,7 @@ apply() {
create_config() {
set +u
debug "Debian version : $DEB_MAJ_VER "
if [[ 7 -le "$DEB_MAJ_VER" ]]; then
if [[ "$DEB_MAJ_VER" -le 7 ]]; then
KEX='diffie-hellman-group-exchange-sha256'
else
KEX='curve25519-sha256,curve25519-sha256@libssh.org,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,ecdh-sha2-nistp521,ecdh-sha2-nistp384,ecdh-sha2-nistp256,diffie-hellman-group-exchange-sha256'