From 4fa344e78429264733c6ea4b13d47f7dc7283f55 Mon Sep 17 00:00:00 2001 From: avwo Date: Sat, 2 Mar 2019 00:37:59 +0800 Subject: [PATCH] refactor: code --- lib/https/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/https/util.js b/lib/https/util.js index e19c054ee..1e308cdbd 100644 --- a/lib/https/util.js +++ b/lib/https/util.js @@ -17,7 +17,7 @@ var sniPort; var SNICallback = function(serverName, cb) { serverName = ca.getDomain(serverName); var options = ca.createCertificate(serverName); - if (!options.ctx) { + if (!options._ctx) { options._ctx = ca.createSecureContext(options); } cb(null, options._ctx);