mirror of
https://github.com/ovh/debian-cis.git
synced 2024-12-22 14:05:23 +01:00
fix: correct debian version check on 5.2.15 configuration generation (#199)
fixes #196
This commit is contained in:
parent
27edec6d5f
commit
6e79fcd00a
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user