Skip to content

Commit

Permalink
haproxy: ssl-default-server-curves added in 2.9.0
Browse files Browse the repository at this point in the history
x-ref:
  "HAProxy config uses ssl-default-server-curves for versions that do not support it"
  #311

github: fixes #311
  • Loading branch information
gstrauss committed Jan 10, 2025
1 parent bc887a0 commit e67a884
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/js/helpers/haproxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ export default (form, output) => {

function haproxy_ssl_default_opts (tag) {
var conf =
' ssl-default-'+tag+'-curves '+output.tlsCurves.join(':')+'\n'+
(minver("2.9.0", form.serverVersion) || tag === 'bind'
?
' ssl-default-'+tag+'-curves '+output.tlsCurves.join(':')+'\n'
: '')+
(output.ciphers.length
?
' ssl-default-'+tag+'-ciphers '+output.ciphers.join(':')+'\n'
Expand Down

0 comments on commit e67a884

Please sign in to comment.