Skip to content

Commit 53bbf6c

Browse files
committed
stunnel: always set sslVersionMin for stunnel 5.50+
1 parent f3a5f6c commit 53bbf6c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/js/helpers/stunnel.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,10 @@ export default (form, output) => {
77
'\n';
88

99
if (minver("5.50", form.serverVersion)) {
10-
if (output.protocols[0] === 'TLSv1.2') {
1110
conf +=
12-
'sslVersionMin = TLSv1.2\n';
13-
}
14-
else if (output.protocols[0] === 'TLSv1.3') {
11+
'sslVersionMin = '+output.protocols[0]+'\n';
12+
if (output.protocols[0] === 'TLSv1.3') {
1513
conf +=
16-
'sslVersionMin = TLSv1.3\n'+
1714
'ciphersuites = '+output.cipherSuites.join(':')+'\n';
1815
}
1916
}

0 commit comments

Comments
 (0)