Skip to content

Commit

Permalink
Merge pull request #301 from gstrauss/stunnel-sslVersionMin
Browse files Browse the repository at this point in the history
stunnel: always set sslVersionMin for stunnel 5.50+
  • Loading branch information
gstrauss authored Dec 8, 2024
2 parents f3a5f6c + 53bbf6c commit 2dc04c1
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/js/helpers/stunnel.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,10 @@ export default (form, output) => {
'\n';

if (minver("5.50", form.serverVersion)) {
if (output.protocols[0] === 'TLSv1.2') {
conf +=
'sslVersionMin = TLSv1.2\n';
}
else if (output.protocols[0] === 'TLSv1.3') {
'sslVersionMin = '+output.protocols[0]+'\n';
if (output.protocols[0] === 'TLSv1.3') {
conf +=
'sslVersionMin = TLSv1.3\n'+
'ciphersuites = '+output.cipherSuites.join(':')+'\n';
}
}
Expand Down

0 comments on commit 2dc04c1

Please sign in to comment.