refactor: code

This commit is contained in:
avwo
2019-03-02 00:37:59 +08:00
parent 116d0b3d5e
commit 4fa344e784
+1 -1
View File
@@ -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);