@@ -465,13 +465,13 @@ to set the security level to 0 while using the default OpenSSL cipher list, you
|
465 | 465 | const tls = require('node:tls'); |
466 | 466 | const port = 443; |
467 | 467 | |
468 | | -tls.createServer({ciphers: 'DEFAULT@SECLEVEL=0', minVersion: 'TLSv1'}, function (socket) { |
| 468 | +tls.createServer({ ciphers: 'DEFAULT@SECLEVEL=0', minVersion: 'TLSv1' }, function(socket) { |
469 | 469 | console.log('Client connected with protocol:', socket.getProtocol()); |
470 | 470 | socket.end(); |
471 | 471 | this.close(); |
472 | | -}). |
473 | | -listen(port, () => { |
474 | | -tls.connect(port, {ciphers: 'DEFAULT@SECLEVEL=0', maxVersion: 'TLSv1'}); |
| 472 | +}) |
| 473 | +.listen(port, () => { |
| 474 | +tls.connect(port, { ciphers: 'DEFAULT@SECLEVEL=0', maxVersion: 'TLSv1' }); |
475 | 475 | }); |
476 | 476 | ``` |
477 | 477 | |
|