From 442e30b6dd44f92d625cec8a224ff7de26fd22e7 Mon Sep 17 00:00:00 2001 From: Jared Hanson Date: Fri, 15 Nov 2024 14:54:48 -0800 Subject: [PATCH] Update workflow. --- etc/request.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/etc/request.js b/etc/request.js index 8159fdf..a4d65a3 100644 --- a/etc/request.js +++ b/etc/request.js @@ -17,7 +17,7 @@ var tls = require('tls') var constants = require('constants') console.log(tls) console.log(constants) -console.log(tls.getCiphers()) +//console.log(tls.getCiphers()) var http = require('http') , https = false @@ -604,7 +604,9 @@ Request.prototype.start = function () { //reqOptions.secureProtocol = 'foo' //reqOptions.secureProtocol = 'SSLv3_method' //reqOptions.secureProtocol = 'TLSv1_5_method' - reqOptions.secureOptions = 1 + // https://stackoverflow.com/questions/31201029/how-to-disable-tls-1-0-and-use-only-tls-1-1-using-nodejs + reqOptions.secureProtocol = 'TLSv1_2_server_method' + //reqOptions.secureOptions = 1 self.req = self.httpModule.request(reqOptions, self.onResponse.bind(self)) if (self.timeout && !self.timeoutTimer) {